import type { ReactNode } from 'react'; import { CheckboxControl } from '@wordpress/components'; import { cn } from '@/lib/utils'; interface CheckboxProps { id?: string; label: ReactNode; checked: boolean; onChange: ( checked: boolean ) => void; className?: string; } /** * WordPress's CheckboxControl with its label beside the box. components.css * keeps the box level with the label's first line when the label wraps. */ function Checkbox( { className, ...props }: CheckboxProps ) { return ; } export { Checkbox };