import { jsx as c } from "@emotion/react/jsx-runtime";
import { withRHFController as i } from "../../../hocs/withRHFController/index.js";
import { Switch as h } from "../../extended/mui/Switch/Switch.js";
const m = ({ value: t, onChange: e, field: f, fieldState: a, formState: d, ...o }) => /* @__PURE__ */ c(
  h,
  {
    checked: !!t,
    onChange: (r) => e?.(r.target.checked),
    ...o
  }
), l = i(m);
export {
  l as RHFSwitch
};
