import type { CheckboxProps } from '@blueprintjs/core'; import { Checkbox } from '@blueprintjs/core'; import type { ControllerProps, FieldValues } from 'react-hook-form'; import { Controller } from 'react-hook-form'; interface CheckControllerProps extends Omit, Pick, 'control' | 'name'> { controllerProps?: Omit< ControllerProps, 'control' | 'name' | 'render' >; } export function CheckController( props: CheckControllerProps, ) { const { name, control, controllerProps, ...otherProps } = props; return ( { const { value, ...otherFieldProps } = field; return ( ); }} /> ); }