'use client'; import * as React from 'react'; import * as SwitchPrimitive from '@radix-ui/react-switch'; import { clsx } from 'clsx'; export interface SwitchProps extends React.ComponentPropsWithoutRef { label?: React.ReactNode; } export const Switch = React.forwardRef, SwitchProps>( ({ label, className, id, ...props }, ref) => { const generatedId = React.useId(); const switchId = id ?? (label ? `switch-${generatedId}` : undefined); return ( ); } ); Switch.displayName = 'Switch';