Files
Checkmate/client/src/Pages/DistributedUptime/Details/Components/MonitorHeader/index.jsx
T

23 lines
621 B
React
Raw Normal View History

2025-02-06 16:07:57 -08:00
import { Stack, Typography } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import PropTypes from "prop-types";
import { useTranslation } from "react-i18next";
2025-02-06 16:07:57 -08:00
const MonitorHeader = ({ monitor }) => {
const theme = useTheme();
const { t } = useTranslation();
2025-02-06 16:07:57 -08:00
return (
<Stack direction="row">
<Stack gap={theme.spacing(2)}>
<Typography variant="h1">{monitor.name}</Typography>
2025-05-27 09:10:32 -07:00
<Typography variant="h2">{t("distributedUptimeDetailsMonitorHeader")}</Typography>
2025-02-06 16:07:57 -08:00
</Stack>
</Stack>
);
};
MonitorHeader.propTypes = {
monitor: PropTypes.object,
};
export default MonitorHeader;