import * as SwitchPrimitive from '@radix-ui/react-switch'; import classNames from 'classnames'; import { memo } from 'react'; interface SwitchProps { className?: string; checked?: boolean; onCheckedChange?: (event: boolean) => void; } export const Switch = memo(({ className, onCheckedChange, checked }: SwitchProps) => { return ( onCheckedChange?.(e)} > ); });