import { j as jsxRuntimeExports } from "../../../../../../../_virtual/jsx-runtime.js";
import { FieldTitle } from "../field-factory.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@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-hot-toast/dist/index.js";
import { useEditorHelpers } from "../../../../../../../use-editor.js";
import { Button as o } from "../../../../../../../node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@19.1.9_@types_react@19.1.13__@types_react@19.1._832fa1fef691e6e9510ada03948dc85c/node_modules/@radix-ui/themes/dist/esm/components/button.js";
function SiteQueriesField(props) {
  const { currentValue, onChange, schema, title, description } = props;
  const editorHelpers = useEditorHelpers();
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex site-queries-field justify-between flex-1 gap-1 flex-wrap", children: [
    /* @__PURE__ */ jsxRuntimeExports.jsx(FieldTitle, { title, description }),
    /* @__PURE__ */ jsxRuntimeExports.jsx(
      o,
      {
        variant: "soft",
        size: "1",
        radius: "full",
        type: "button",
        onClick: () => {
          editorHelpers.toggleModal("queries");
        },
        children: "Manage site queries"
      }
    )
  ] });
}
export {
  SiteQueriesField as default
};
//# sourceMappingURL=site-queries.js.map
