import * as React from 'react' import * as SwitchPrimitive from '@radix-ui/react-switch' import { cn } from '@/lib/utils' import { IconLoader2 } from '@tabler/icons-react' type SwitchProps = React.ComponentProps & { loading?: boolean } function Switch({ loading, className, ...props }: SwitchProps) { return ( {loading && (
)}
) } export { Switch }