35 lines
849 B
TypeScript
35 lines
849 B
TypeScript
import Box from "@mui/material/Box";
|
|
import { useTranslation } from "react-i18next";
|
|
import type { SlotProps } from "@/Pages/StatusPage/Status/themes/shared/BaseStatusPage";
|
|
import type { ModernStyles } from "@/Pages/StatusPage/Status/themes/modern/styles";
|
|
|
|
export const ModernHero = ({
|
|
overall,
|
|
monitorCount,
|
|
styles,
|
|
}: SlotProps<ModernStyles>) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Box sx={styles.hero}>
|
|
<Box sx={styles.pulse(overall.tone)} />
|
|
<Box sx={styles.statusCopy}>
|
|
<Box
|
|
component="h1"
|
|
sx={styles.heroTitle}
|
|
>
|
|
{overall.message}
|
|
</Box>
|
|
<Box
|
|
component="p"
|
|
sx={styles.heroSub}
|
|
>
|
|
{t("pages.statusPages.statusBar.monitoringSummary", {
|
|
count: monitorCount,
|
|
})}
|
|
</Box>
|
|
</Box>
|
|
<Box sx={styles.heroIcon(overall.tone)}>{overall.icon}</Box>
|
|
</Box>
|
|
);
|
|
};
|