import * as React from 'react'; import * as SwitchPrimitives from '@radix-ui/react-switch'; import { cn } from '~/utils'; type BaseSwitchProps = Omit< React.ComponentPropsWithoutRef, 'aria-label' | 'aria-labelledby' >; type SwitchProps = | (BaseSwitchProps & { 'aria-label': string; 'aria-labelledby'?: never; }) | (BaseSwitchProps & { 'aria-labelledby': string; 'aria-label'?: never; }); const Switch = React.forwardRef, SwitchProps>( ({ className, ...props }, ref) => ( ), ); Switch.displayName = SwitchPrimitives.Root.displayName; export { Switch };