import React from "react"; import { ControlsProps } from "../../common/controls.type"; import classNames from "classnames"; interface Props extends Pick { value: boolean; onChange: (status: boolean) => void; } const Switch = ({ value, onChange, disabled }: Props) => { const handleClick = () => { if (disabled) return; onChange(!value); }; return (
); }; export default Switch;