import React from "react"; import { Switch, SwitchProps } from "@headlessui/react"; import { twMerge } from "tailwind-merge"; export const InlineSwitch = ( props: { label?: React.ReactNode; tooltip?: string; tooltipId?: string; } & SwitchProps<"button">, ) => { const { label, tooltip, tooltipId, disabled, ...rest } = props; return (
{label && ( <>
{label}
)}
); };