import Box from "@mui/material/Box"; import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import { useTheme } from "@mui/material/styles"; import { typographyLevels } from "@/Utils/Theme/Palette"; import { SPACING } from "@/Utils/Theme/constants"; interface BarRowProps { label: string; value: string; fillRatio: number; valueColor?: string; } export const BarRow = ({ label, value, fillRatio, valueColor }: BarRowProps) => { const theme = useTheme(); const clampedRatio = Math.min(1, Math.max(0, fillRatio)); return ( {label} {value} ); };