File size: 433 Bytes
4304c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import cn from 'classnames'
import s from './index.module.css'

type CheckboxProps = {
  checked?: boolean
  onCheck?: () => void
  className?: string
}

const Checkbox = ({ checked, onCheck, className }: CheckboxProps) => {
  return (
    <div

      className={cn(s.wrapper, checked && s.checked, 'w-4 h-4 border rounded border-gray-300', className)}

      onClick={onCheck}

    />
  )
}

export default Checkbox