import { jsx, jsxs, Fragment } from "react/jsx-runtime";
import "react";
import { LinkProvider } from "@netlify/ui";
import { SvgProvider, defaultImportSvg } from "./SvgProvider.js";
import { NetlifySDKProvider } from "../NetlifySDKProvider.js";
import { useWindowResizer } from "../use_window_resizer.js";
import { Theme } from "../theme/Theme.js";
const Resizer = ({ children }) => {
  useWindowResizer();
  return /* @__PURE__ */ jsx(Fragment, { children });
};
const renderLink = ({ href, ...otherProps }) => /* @__PURE__ */ jsx("a", { ...otherProps, href, rel: "noopener noreferrer", target: "_blank" });
const NetlifyExtensionUI = ({ children }) => {
  return /* @__PURE__ */ jsx(NetlifySDKProvider, { children: /* @__PURE__ */ jsx(Resizer, { children: /* @__PURE__ */ jsx(SvgProvider, { importSvg: defaultImportSvg, children: /* @__PURE__ */ jsxs(LinkProvider, { renderLink, children: [
    /* @__PURE__ */ jsx(Theme, {}),
    children
  ] }) }) }) });
};
export {
  NetlifyExtensionUI
};
//# sourceMappingURL=NetlifyExtensionUI.js.map
