import { Signal, useSignal } from "@preact/signals"; import { useId } from "preact/hooks"; const Checkbox = ( { label, checked = useSignal(false) }: { label: string; checked?: Signal; }, ) => { const _id = useId(); const id = `checkbox-${_id}`; return ( ); }; export default Checkbox;