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