import { Immutable } from "helpers/types"; import { Dispatch, SetStateAction } from "react"; interface Props { setState: Dispatch>; state: boolean; className?: string; } export function Switch(props: Immutable): JSX.Element { return (
{ props.setState(!props.state); }} >
); }