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.

20 lines (19 loc) 713 B
import { jsx as r } from "react/jsx-runtime"; import { Page as i, PageProvider as s, PageConsumer as a } from "@devgateway/wp-react-lib"; import { useParams as c } from "react-router"; import l from "../ResponsiveContainer.js"; const P = ({ header: e, footer: n, pages: o } = {}) => { const { lan: m, slug: t } = c(); return o ? /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(i, { pages: typeof o == "object" ? [o] : o }) }) : /* @__PURE__ */ r( s, { locale: m, slug: t, store: t, children: /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(i, {}) }) }) } ); }; export { P as default };