ui.tsx 389 B

123456789101112131415161718
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import cn from '@/utils/classnames'
  5. type Props = {
  6. isChecked: boolean
  7. }
  8. const RadioUI: FC<Props> = ({
  9. isChecked,
  10. }) => {
  11. return (
  12. <div className={cn(isChecked ? 'border-[5px] border-[#155eef]' : 'border-[2px] border-gray-200', 'w-4 h-4 rounded-full')}>
  13. </div>
  14. )
  15. }
  16. export default React.memo(RadioUI)