1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src/component/maintenance/MaintenanceBanner.tsx
2022-12-21 13:23:44 +02:00

37 lines
1.0 KiB
TypeScript

import { styled } from '@mui/material';
import { ErrorOutlineRounded } from '@mui/icons-material';
const StyledErrorRoundedIcon = styled(ErrorOutlineRounded)(({ theme }) => ({
height: '20px',
width: '20px',
marginRight: theme.spacing(1),
}));
const StyledDiv = styled('div')(({ theme }) => ({
display: 'flex',
fontSize: theme.fontSizes.smallBody,
justifyContent: 'center',
alignItems: 'center',
color: theme.palette.error.main,
backgroundColor: theme.palette.error.light,
height: '65px',
borderBottom: `1px solid ${theme.palette.error.border}`,
whiteSpace: 'pre-wrap',
}));
const MaintenanceBanner = () => {
return (
<StyledDiv>
<StyledErrorRoundedIcon />
<b>Maintenance Mode! </b>
<p>
During maintenance mode, any changes made will not be saved and
you may receive an error. We apologize for any inconvenience
this may cause.
</p>
</StyledDiv>
);
};
export default MaintenanceBanner;