import { j as e } from "../../../../../../../_virtual/jsx-runtime.js";
import "react";
import "../../../../../../../node_modules/.pnpm/@formkit_auto-animate@0.8.2/node_modules/@formkit/auto-animate/index.js";
import "../../../../../../../node_modules/.pnpm/react-hot-toast@2.5.2_react-dom@18.3.0-canary-3d9b20132-20240124_react@18.3.0-canary-3d_c02c1e17bf76c343fd22d1f22394ecf5/node_modules/react-hot-toast/dist/index.js";
import { FieldTitle as a } from "../field-factory.js";
import { Switch as c } from "../../../../../../../node_modules/.pnpm/@radix-ui_themes@3.1.4_@types_react-dom@18.3.6_@types_react@18.3.3__@types_react@18.3.3_46b1dabc193c5ff5696ee783983c694e/node_modules/@radix-ui/themes/dist/esm/components/switch.js";
const u = (t) => {
  const { onChange: i, title: r, description: s, currentValue: o, brickId: l } = t;
  return /* @__PURE__ */ e.jsxs("div", { className: "switch-field flex items-center justify-between flex-grow gap-4", children: [
    /* @__PURE__ */ e.jsx(a, { title: r, description: s }),
    /* @__PURE__ */ e.jsx(
      c,
      {
        onCheckedChange: (n) => {
          i(n);
        },
        size: "2",
        variant: "soft",
        defaultChecked: o
      }
    )
  ] });
};
export {
  u as default
};
//# sourceMappingURL=switch.js.map
