import { cn } from "#/utils/utils"; export type ToggleSwitchSize = "md" | "sm"; interface ToggleSwitchVisualProps { enabled: boolean; /** `sm` is the compact menu-row pill; `md` is the settings/automation switch. */ size?: ToggleSwitchSize; className?: string; } /** Shared toggle track + thumb used by settings labels and automation controls. */ export function ToggleSwitchVisual({ enabled, size = "md", className, }: ToggleSwitchVisualProps) { const compact = size === "sm"; return (