"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),j=require("react-router"),i=require("../ResponsiveContainer.js"),r=require("@devgateway/wp-react-lib"),g=({header:o,footer:s,posts:t}={})=>{const{lan:l,slug:n,parent:u,year:a,month:c,day:d}=j.useParams();if(t){const P=typeof t=="object"?[t]:t;return e.jsx(i.default,{header:o,footer:s,children:e.jsx(r.Post,{posts:P})})}return console.log("SlugPostContainer falling back to PostProvider"),e.jsx(r.PostProvider,{type:u,slug:n,store:n,locale:l,year:a,month:c,day:d,children:e.jsx(i.default,{header:o,footer:s,children:e.jsx(r.PostConsumer,{children:e.jsx(r.Post,{})})})})};exports.default=g;
