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"; export interface SitesTotalProps { amount: number; currency: string; } const SitesTotal: React.FC = ({ amount, currency }) => { const { t } = useI18n(); return ( {t("Total")} {currencyFormat(amount, currency, undefined, 0)} ); }; export default SitesTotal;