import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import Card from "@mui/material/Card"; import CardContent from "@mui/material/CardContent"; import CircularProgress from "@mui/material/CircularProgress"; import { useTheme } from "@emotion/react"; import PropTypes from "prop-types"; import { getHumanReadableDuration } from "../../../../../Utils/timeUtils"; import { formatBytes } from "../../utils/utils"; import { useTranslation } from "react-i18next"; const StatsCard = ({ title, value, unit = "", isLoading }) => { const theme = useTheme(); return ( {isLoading ? ( ) : ( {title} {value} {unit} )} ); }; StatsCard.propTypes = { title: PropTypes.string, value: PropTypes.string, unit: PropTypes.string, isLoading: PropTypes.bool, }; const Stats = ({ diagnostics, isLoading }) => { const theme = useTheme(); const { t } = useTranslation(); return ( ); }; Stats.propTypes = { diagnostics: PropTypes.object, isLoading: PropTypes.bool, }; export default Stats;