2025-11-13 13:47:26 -08:00
|
|
|
import Grid from "@mui/material/Grid";
|
|
|
|
|
import Typography from "@mui/material/Typography";
|
2025-11-25 19:03:48 +00:00
|
|
|
import { HeatmapResponseTime } from "../common/HeatmapResponseTime";
|
2025-11-13 13:47:26 -08:00
|
|
|
import { StatusLabel } from "@/components/design-elements";
|
|
|
|
|
|
|
|
|
|
import type { IMonitor } from "@/types/monitor";
|
|
|
|
|
|
|
|
|
|
export const StatusPageRow = ({ monitor }: { monitor: IMonitor }) => {
|
|
|
|
|
return (
|
|
|
|
|
<Grid container>
|
2025-11-25 19:03:48 +00:00
|
|
|
<Grid size={6} display={"flex"} alignItems={"center"}>
|
2025-11-13 13:47:26 -08:00
|
|
|
<Typography>{monitor?.name}</Typography>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid
|
2025-11-25 19:03:48 +00:00
|
|
|
size={6}
|
2025-11-13 13:47:26 -08:00
|
|
|
display={"flex"}
|
|
|
|
|
alignItems={"center"}
|
2025-11-25 19:03:48 +00:00
|
|
|
justifyContent={"flex-end"}
|
2025-11-13 13:47:26 -08:00
|
|
|
>
|
|
|
|
|
<StatusLabel status={monitor?.status} />
|
|
|
|
|
</Grid>
|
2025-11-25 19:03:48 +00:00
|
|
|
<Grid size={12}>
|
|
|
|
|
<HeatmapResponseTime checks={monitor?.latestChecks} />
|
|
|
|
|
</Grid>
|
2025-11-13 13:47:26 -08:00
|
|
|
</Grid>
|
|
|
|
|
);
|
|
|
|
|
};
|