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"; type Props = { monitor: IMonitor; checks: any[] }; export const StatusPageRow = ({ monitor, checks }: Props) => { const theme = useTheme(); const type = useAppSelector((state) => state?.ui?.chartType || "heatmap"); return ( {monitor?.name} {type === "heatmap" && ( )} {type === "histogram" && ( )} ); };