import type { MattrixwvSwitchProps } from "$/types/InputTypes"; import { Field, Label, Switch } from "@headlessui/react"; import clsx from "clsx"; import { Fragment } from "react/jsx-runtime"; export default function MattrixwvSwitch({ id, className, knobClassName, size = "sm", wide, name, value, defaultChecked, checked, onChange, disabled, children, offText, onText }: MattrixwvSwitchProps){ return ( { offText && {offText} } { onText && {onText} } ); }