import Grid from "@mui/material/Grid"; import Typography from "@mui/material/Typography"; import { HeatmapResponseTime } from "../common/HeatmapResponseTime"; import { HistogramResponseTime } from "../common/HistogramResponseTime"; import { StatusLabel } from "@/components/design-elements"; import { useTheme } from "@mui/material/styles"; import { useAppSelector } from "@/hooks/AppHooks"; import type { IMonitor } from "@/types/monitor"; export const StatusPageRow = ({ monitor }: { monitor: IMonitor }) => { const theme = useTheme(); const type = useAppSelector((state) => state?.ui?.chartType || "heatmap"); return ( {monitor?.name} {type === "heatmap" && ( )} {type === "histogram" && ( )} ); };