UNPKG

bananas-commerce-admin

Version:

What's this, an admin for apes?

11 lines 806 B
import React from "react"; import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import { currencyFormat } from "../utils/amountToCurrencyString"; const SitesAmountsList = ({ data, isExchanged }) => { return (React.createElement(Stack, { direction: "column", px: 2 }, data.map((item) => (React.createElement(Stack, { key: item.site_code, alignItems: "center", direction: "row", justifyContent: "space-between", spacing: 1 }, React.createElement(Typography, null, item.site_code), React.createElement(Typography, { component: "p", fontSize: 20, fontWeight: 700, variant: "h5" }, currencyFormat(Number(item.amount), item.currency, undefined, isExchanged ? 0 : 2))))))); }; export default SitesAmountsList; //# sourceMappingURL=SitesAmountsList.js.map