@rsc-labs/medusa-store-analytics-v2
Version:
Get analytics data about your store
23 lines (22 loc) • 1.78 kB
JavaScript
import { jsxs, jsx } from "react/jsx-runtime";
import { Container } from "@medusajs/ui";
import "react";
import "@medusajs/icons";
import { Grid } from "@mui/material";
import "recharts";
import { CustomersOverviewCard } from "../customers/customers-overview-card.js";
import { CustomersRepeatCustomerRate } from "../customers/repeat-customer-rate/customers-repeat-customer-rate.js";
import { CustomersRetentionCustomerRate } from "../customers/retention-customer-rate/customers-retention-customer-rate.js";
import { CumulativeCustomersCard } from "../customers/cumulative-history/cumulative-customers-card.js";
import "react-router-dom";
const CustomersTab = ({ orderStatuses, dateRange, dateRangeCompareTo, compareEnabled }) => {
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
/* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(CustomersOverviewCard, { dateRange, dateRangeCompareTo, compareEnabled }) }) }),
/* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(CumulativeCustomersCard, { dateRange, dateRangeCompareTo, compareEnabled }) }) }),
/* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(CustomersRepeatCustomerRate, { orderStatuses, dateRange, dateRangeCompareTo, compareEnabled }) }) }),
/* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(CustomersRetentionCustomerRate, { orderStatuses, dateRange, dateRangeCompareTo, compareEnabled }) }) })
] });
};
export {
CustomersTab as default
};