"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),v=require("../ResponsiveContainer.js"),r=require("@devgateway/wp-react-lib"),s=require("react-router"),d=({header:n,footer:i})=>{const o=s.useLocation(),{id:a}=s.useParams(),t=new URLSearchParams(o.search),c=t.get("preview"),u=t.get("_wpnonce");return e.jsx(v.default,{header:n,footer:i,children:e.jsx(r.PageProvider,{store:"preview",perPage:1,view:c,previewNonce:u,previewId:a,children:e.jsx(r.PageConsumer,{children:e.jsx(r.Page,{preview:!0})})})})};exports.default=d;
