) {
const handleChange = (cValue: V): void => {
if (value?.includes(cValue)) {
onChange(_.without(value, cValue))
} else {
onChange([...value, cValue])
}
}
const isOptions = options.length > 0
return (
{isOptions
? options.map((option, index) => )
: children}
)
}
export default CheckboxGroup
export type { CheckboxGroupProps }