import { FormItem, FormControl, FormLabel } from "@/components/ui/form" import { Checkbox } from "@/components/ui/checkbox" export default function GenreCheckbox({ field, item }) { return ( { return checked ? field.onChange([...field.value, item.id]) : field.onChange( field.value?.filter( (value) => value !== item.id ) ) }} /> {item.name} ) }