import StatusBoxes from "../../../../../Components/StatusBoxes"; import StatBox from "../../../../../Components/StatBox"; import { Typography } from "@mui/material"; import { getHumanReadableDuration } from "../../../../../Utils/timeUtils"; const PageSpeedStatusBoxes = ({ shouldRender, monitor }) => { const { time: uptimeDuration, units: uptimeUnits } = getHumanReadableDuration( monitor?.uptimeDuration ); const { time: lastCheckTime, units: lastCheckUnits } = getHumanReadableDuration( monitor?.lastChecked ); return ( {uptimeDuration} {uptimeUnits} ago } /> {lastCheckTime} {lastCheckUnits} ago } /> ); }; export default PageSpeedStatusBoxes;