@rsc-labs/medusa-store-analytics-v2
Version:
Get analytics data about your store
23 lines • 2.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrderFrequencyDistribution = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
/*
* Copyright 2024 RSC-Labs, https://rsoftcon.com/
*
* MIT License
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const ui_1 = require("@medusajs/ui");
const material_1 = require("@mui/material");
const order_frequency_distribution_chart_1 = require("./order-frequency-distribution-chart");
const OrderFrequencyDistribution = ({ repeatCustomerRateResponse, compareEnabled }) => {
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: 'column', alignItems: 'center', paddingTop: 3, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, children: (0, jsx_runtime_1.jsx)(ui_1.Heading, { level: "h3", children: "How orders were distributed?" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, children: (0, jsx_runtime_1.jsx)(order_frequency_distribution_chart_1.OrderFrequencyDistributionPieChart, { repeatCustomerRateResponse: repeatCustomerRateResponse, compareEnabled: compareEnabled }) })] }));
};
exports.OrderFrequencyDistribution = OrderFrequencyDistribution;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZnJlcXVlbmN5LWRpc3RyaWJ1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy91aS1jb21wb25lbnRzL2N1c3RvbWVycy9yZXBlYXQtY3VzdG9tZXItcmF0ZS9vcmRlci1mcmVxdWVuY3ktZGlzdHJpYnV0aW9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7Ozs7Ozs7R0FVRztBQUVILHFDQUF1QztBQUN2Qyw0Q0FBcUM7QUFFckMsNkZBQTBGO0FBRW5GLE1BQU0sMEJBQTBCLEdBQUcsQ0FBQyxFQUFDLDBCQUEwQixFQUFFLGNBQWMsRUFBK0YsRUFBRSxFQUFFO0lBQ3ZMLE9BQU8sQ0FDTCx3QkFBQyxlQUFJLElBQUMsU0FBUyxRQUFDLFNBQVMsRUFBRSxRQUFRLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxVQUFVLEVBQUUsQ0FBQyxhQUN0RSx1QkFBQyxlQUFJLElBQUMsSUFBSSxrQkFDUix1QkFBQyxZQUFPLElBQUMsS0FBSyxFQUFDLElBQUksNkNBRVQsR0FDTCxFQUNQLHVCQUFDLGVBQUksSUFBQyxJQUFJLGtCQUNSLHVCQUFDLHVFQUFrQyxJQUFDLDBCQUEwQixFQUFFLDBCQUEwQixFQUFFLGNBQWMsRUFBRSxjQUFjLEdBQUcsR0FDeEgsSUFDRixDQUNSLENBQUE7QUFDSCxDQUFDLENBQUE7QUFiWSxRQUFBLDBCQUEwQiw4QkFhdEMifQ==