packages/@visi/web-client/src/components/ui/switch/switch.tsx
Function Switch
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Switch = (props: SwitchProps) => {
const { value, disabled, children } = props;
const [checked, setChecked] = useState(value);
const handleCheck = () => {