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