import React from 'react' import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import CheckIcon from '~public/icons/Check.svg' import './index.scss' interface Props { checked?: boolean valueKey: string onCheckedChange: (open: boolean, key: string) => void children: React.ReactNode } const SearchFilterCheckboxItem = (props: Props) => { function handleCheckedChange(checked: string | boolean) { if (typeof checked === 'boolean') { props.onCheckedChange(checked, props.valueKey) } else { props.onCheckedChange(false, props.valueKey) } } return ( event.preventDefault()} > {props.children} ) } export default SearchFilterCheckboxItem