"use client"; import * as React from "react"; import * as SwitchPrimitive from "@radix-ui/react-switch"; import { cn } from "@/lib/utils"; export const Switch = React.forwardRef, React.ComponentPropsWithoutRef & { size?: "sm" | "md" }>(function Switch({ className, size = "md", ...props }, ref) { const dims = size === "sm" ? "h-4 w-7" : "h-5 w-9"; const thumb = size === "sm" ? "size-3 data-[state=checked]:translate-x-3" : "size-4 data-[state=checked]:translate-x-4"; return ( ); });