import styles from './style.module.scss'; import cx from 'classnames'; interface ToggleSwitchProps { onChange: (checked: boolean) => void; checked: boolean; ariaLabel?: string; } /** * @since 4.10.0 Remove checkbox to control state visibility. * @since 2.24.0 */ const ToggleSwitch = ({ariaLabel, checked, onChange}: ToggleSwitchProps) => { const handleChange = () => { onChange(!checked); }; return ( ); }; export default ToggleSwitch;