import * as React from "react" import { Switch as SwitchPrimitive } from "radix-ui" import { cn } from "../../lib/utils" /** * The Radix switch -, and the destination `ui/*` never had. * * **THE SWEEP COULD NOT FINISH BECAUSE THIS FILE DID NOT EXIST.** `ui/` held 38 primitives and not one * of them was a switch, so **46 live `` usages across 22 files had nowhere to go**, and * every new feature needing a toggle added another WordPress usage. * * **This is deliberately NOT what call sites converting from WordPress should reach for.** WP's * `ToggleControl` renders a label and help text; this renders a switch and nothing else, so swapping one * for the other here would silently drop the label off 46 controls. `ui/toggle-control` is the adapter * that carries the WP contract - and hand-rolling that layout at each call site is how a design system * grows 22 slightly different toggles. * Use this directly only when the label already exists in the surrounding markup. * * Imported from the unified `radix-ui` package, as `ui/tabs` and `ui/label` already do, rather than * `@radix-ui/react-switch` - the dependency is already installed and satisfied, so this primitive costs * no lockfile change. */ function Switch({ className, ...props }: React.ComponentProps) { return ( ) } export { Switch }