import clsx from "clsx"; type ToggleProps = { id: string; label: string; onChange?: (checked: boolean) => void; checked: boolean; }; export function Toggle(props: ToggleProps) { return (
props.onChange?.(e.target.checked)} checked={props.checked} aria-checked={props.checked} role="switch" aria-label={props.label} />
); }