UNPKG

@rsc-labs/medusa-store-analytics-v2

Version:
20 lines (19 loc) 1.23 kB
import { jsxs, jsx } from "react/jsx-runtime"; import { Heading } from "@medusajs/ui"; import { Users } from "@medusajs/icons"; import { Grid } from "@mui/material"; import { CustomersNumber } from "./customers-number-overview.js"; import { CustomersByNewChart } from "./customers-by-new-chart.js"; const CustomersOverviewCard = ({ dateRange, dateRangeCompareTo, compareEnabled }) => { return /* @__PURE__ */ jsxs(Grid, { container: true, paddingBottom: 2, spacing: 3, children: [ /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Users, {}) }), /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: "New customers" }) }) ] }) }), /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, children: /* @__PURE__ */ jsx(CustomersNumber, { dateRange, dateRangeCompareTo, compareEnabled }) }), /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, children: /* @__PURE__ */ jsx(CustomersByNewChart, { dateRange, dateRangeCompareTo, compareEnabled }) }) ] }); }; export { CustomersOverviewCard };