@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.
17 lines (16 loc) • 658 B
JavaScript
import { jsx as i } from "react/jsx-runtime";
import { connect as n } from "react-redux";
import r from "./mobile.js";
import s from "./desktop.js";
import c from "../../utils/deviceType.js";
const m = (o) => {
const e = o.getIn(["data", "pageModuleProps"]), t = {};
return e && (t.pageModuleProps = e), t;
}, a = {}, p = (o) => {
const { pageModuleProps: e } = o;
let t;
return e != null && e.editing && (e != null && e.previewMode) ? (e == null ? void 0 : e.previewMode) === "Desktop" ? t = s : t = r : ["tablet", "mobile", "midTablet"].includes(c()) ? t = r : t = s, /* @__PURE__ */ i(t, { ...o });
}, k = n(m, a)(p);
export {
k as default
};