import React, { InputHTMLAttributes, forwardRef } from "react"; import classNames from "classnames"; import { Field, FieldProps } from ":/components/Forms/Field"; export type SwitchProps = InputHTMLAttributes & FieldProps & { label?: string; labelSide?: "left" | "right"; }; export const Switch = forwardRef( ({ label, labelSide = "left", ...props }: SwitchProps, ref) => { return (