import * as React from "react"; import type { FC, InputHTMLAttributes } from "react"; import styles from "./Checkbox.module.scss"; interface CheckboxProps extends Omit, "type"> { label: string; } export const Checkbox: FC = ({ label, id, checked, onChange, ...props }) => { const handleWrapperClick = (e: React.MouseEvent): void => { if ((e.target as HTMLElement).tagName !== "INPUT") { const input = e.currentTarget.querySelector("input"); if (input) { input.click(); } } }; return ( ); };