import clsx from 'clsx/lite';
import { InputHTMLAttributes, ReactNode, RefObject } from 'react';
import { ImCheckmark } from 'react-icons/im';
const boxStyles = clsx(
'relative',
'inline-flex items-center justify-center',
'size-5 rounded-md border',
);
export default function Checkbox({
ref,
className,
accessory,
type: _type,
...props
}: Omit, 'ref'> & {
ref?: RefObject
accessory?: ReactNode
}) {
return (
ref?.current?.click()}
>
{accessory
? accessory
: props.checked
?
: }
);
}