UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

2 lines (1 loc) 735 B
"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,{slug:n,store:n,locale:l,type:u,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;