"use client"; import React from "react"; import { cls } from "../util"; export type BooleanSwitchProps = { value: boolean | null; className?: string; disabled?: boolean; size?: "smallest" | "small" | "medium" | "large"; } & ({ allowIndeterminate: true; onValueChange?: (newValue: boolean | null) => void; } | { allowIndeterminate?: false; onValueChange?: (newValue: boolean) => void; }); export const BooleanSwitch = React.forwardRef(function BooleanSwitch({ value, allowIndeterminate, className, onValueChange, disabled = false, size = "medium", ...props }: BooleanSwitchProps, ref: React.Ref) { return ; } ) as React.ForwardRefExoticComponent>;