import { CustomCheckboxContainer, CustomCheckboxInput, CustomCheckboxInputProps } from '@reach/checkbox' import '@reach/checkbox/styles.css' import { FunctionComponent, useState } from 'react' import { SwitchProps } from './SwitchProps' const Switch: FunctionComponent = (props: SwitchProps) => { const [checkedState, setChecked] = useState(props.checked || false) const checked = props.checked ?? checkedState const className = props.className ?? '' const isDisabled = !!props.disabled const isActive = checked && !isDisabled return ( ) } export default Switch