import * as React from "react"; import { Box, Typography, Paper, LinearProgress, Divider, linearProgressClasses } from "@mui/material"; import { useTheme, alpha } from "@mui/material/styles"; import { getPercentage, formatCurrency } from "../report.helpers"; import { ProgressCardViewProps } from "./ProgressCard.props"; export default function ProgressCardView({ title, settings, isFetching, colorScheme, progressAmount, totalAmount, selected, onClick, }: ProgressCardViewProps) { const theme = useTheme(); const percentage = getPercentage(progressAmount, totalAmount); const formattedProgress = formatCurrency(progressAmount); const formattedTotal = formatCurrency(totalAmount); return ( {title} {formattedProgress} of {formattedTotal} ); }