import { JSX } from "preact"; interface CheckboxProps extends JSX.InputHTMLAttributes { label?: string; } export default function Checkbox({ label, className = "", ...props }: CheckboxProps) { const checkboxClasses = `w-4 h-4 ${className}`; if (label) { return ( ); } return ; }