import { FieldName, useField } from "@conform-to/react/future"; import { Field, FieldProps } from "../field/Field"; import { Checkbox } from "./Checkbox"; interface Props extends Omit { name: FieldName; checkboxLabel: string; } export function CheckboxField({ name, checkboxLabel, id: forcedId, ...rest }: Props) { const field = useField(name); const id = forcedId ?? field.id; return ( {checkboxLabel} ); }