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 (
);
}
interface ToggleSwitchProps {
enabled: boolean;
label: string;
onToggle: () => void;
className?: string;
}
export function ToggleSwitch({
enabled,
label,
onToggle,
className,
}: ToggleSwitchProps) {
return (
);
}