import { useId } from "@radix-ui/react-id"; import * as Label from "@radix-ui/react-label"; import * as PrimitiveSwitch from "@radix-ui/react-switch"; import React from "react"; import classNames from "@calcom/lib/classNames"; const Switch = ( props: React.ComponentProps & { label?: string; } ) => { const { label, ...primitiveProps } = props; const id = useId(); return (
{label && ( {label} )}
); }; export default Switch;