import { jsx as r } from "react/jsx-runtime";
import { Page as i, PageProvider as s, PageConsumer as a } from "@devgateway/wp-react-lib";
import { useParams as c } from "react-router";
import l from "../ResponsiveContainer.js";
const P = ({ header: e, footer: n, pages: o } = {}) => {
  const { lan: m, slug: t } = c();
  return o ? /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(i, { pages: typeof o == "object" ? [o] : o }) }) : /* @__PURE__ */ r(
    s,
    {
      locale: m,
      slug: t,
      store: t,
      children: /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(i, {}) }) })
    }
  );
};
export {
  P as default
};
