bananas-commerce-admin
Version:
What's this, an admin for apes?
13 lines • 851 B
JavaScript
import React from "react";
import { Typography } from "@mui/material";
import Stack from "@mui/material/Stack";
import { useI18n } from "../../../contexts/I18nContext";
import { currencyFormat } from "../utils/amountToCurrencyString";
const SitesTotal = ({ amount, currency }) => {
const { t } = useI18n();
return (React.createElement(Stack, { alignItems: "center", border: 1, borderBottom: 0, borderColor: "divider", borderLeft: 0, borderRight: 0, direction: "row", justifyContent: "space-between", mt: 2, mx: 2 },
React.createElement(Typography, { color: "textSecondary", variant: "overline" }, t("Total")),
React.createElement(Typography, { component: "p", fontSize: 28, fontWeight: 700, variant: "h5" }, currencyFormat(amount, currency, undefined, 0))));
};
export default SitesTotal;
//# sourceMappingURL=SitesTotal.js.map