type SlideCheckboxProps = { onClick: () => void; checked?: boolean; }; const SlideCheckbox = ({ onClick, checked = false }: SlideCheckboxProps) => { return ( { onClick(); }} onKeyDown={(e) => { if (e.key === 'Enter' || e.key === 'Space') { onClick(); } }} className={`relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center pt-2 focus:outline-none`} > ); }; export default SlideCheckbox;