UNPKG

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

Version:
22 lines (21 loc) 1.64 kB
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 { VariantsTopByCountCard } from "../products/variants-top-by-count.js"; import { ReturnedVariantsByCountCard } from "../products/returned_variants/returned-variants-by-count.js"; import { ProductsSoldCountCard } from "../products/products-sold-count.js"; import { OutOfTheStockVariantsCard } from "../products/out_of_the_stock_variants/out-of-the-stock-variants-by-count.js"; const ProductsTab = ({ 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(ProductsSoldCountCard, { orderStatuses, dateRange, dateRangeCompareTo, compareEnabled }) }) }), /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(VariantsTopByCountCard, { orderStatuses, dateRange, dateRangeCompareTo, compareEnabled }) }) }), /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(ReturnedVariantsByCountCard, { dateRange, dateRangeCompareTo }) }) }), /* @__PURE__ */ jsx(Grid, { item: true, xs: 6, md: 6, xl: 6, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(OutOfTheStockVariantsCard, {}) }) }) ] }); }; export { ProductsTab as default };