import clsx from "clsx"; import type { ButtonHTMLAttributes, Dispatch, SetStateAction } from "react"; export interface Props extends ButtonHTMLAttributes { label?: string; description?: string; model: [boolean, Dispatch>]; className?: string; } function Checkbox(props: Props) { return ( props.model[1](e.target.checked)} /> {props.label && {props.label}} ); } export default Checkbox;