@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.
24 lines (23 loc) • 876 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { useParams as P } from "react-router";
import s from "../ResponsiveContainer.js";
import { Post as i, PostProvider as u, PostConsumer as f } from "@devgateway/wp-react-lib";
const v = ({ header: e, footer: t, posts: r } = {}) => {
const { lan: l, slug: n, parent: a, year: c, month: d, day: m } = P();
return r ? /* @__PURE__ */ o(s, { header: e, footer: t, children: /* @__PURE__ */ o(i, { posts: typeof r == "object" ? [r] : r }) }) : (console.log("SlugPostContainer falling back to PostProvider"), /* @__PURE__ */ o(
u,
{
slug: n,
store: n,
locale: l,
type: a,
year: c,
month: d,
day: m,
children: /* @__PURE__ */ o(s, { header: e, footer: t, children: /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(i, {}) }) })
}
));
};
export {
v as default
};