import { j as jsxRuntimeExports } from "./_virtual/jsx-runtime.js";
import { usePageStyle } from "./packages/components/src/shared/hooks/use-page-style.js";
import Section from "./packages/components/src/shared/components/Section.js";
import { useSections, useSiteAttributes, usePageAttributes } from "./use-page-data.js";
function Page() {
  const pageClassName = usePageStyle();
  const sections = useSections();
  const siteAttributes = useSiteAttributes();
  const pageAttributes = usePageAttributes();
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: pageClassName, children: [
    sections.map((section) => /* @__PURE__ */ jsxRuntimeExports.jsx(Section, { section }, section.id)),
    siteAttributes.bodyTags && // biome-ignore lint/security/noDangerouslySetInnerHtml: Enable raw HTML
    /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: siteAttributes.bodyTags } }),
    pageAttributes.additionalTags?.bodyTags && // biome-ignore lint/security/noDangerouslySetInnerHtml: Enable raw HTML
    /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: pageAttributes.additionalTags.bodyTags } })
  ] });
}
export {
  Page as default
};
//# sourceMappingURL=Page.js.map
