import { cn } from "~/client/lib/utils"; import { Switch } from "./ui/switch"; type Props = { isOn: boolean; toggle: (v: boolean) => void; enabledLabel: string; disabledLabel: string; disabled?: boolean; }; export const OnOff = ({ isOn, toggle, enabledLabel, disabledLabel, disabled }: Props) => { return (
{isOn ? enabledLabel : disabledLabel}
); };