2023-02-27 13:04:09 +01:00
|
|
|
import { Box, Typography, styled } from '@mui/material';
|
|
|
|
import NotificationsIcon from '@mui/icons-material/Notifications';
|
|
|
|
|
|
|
|
const StyledBox = styled(Box)(() => ({
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'column',
|
|
|
|
minHeight: '150px',
|
|
|
|
}));
|
|
|
|
|
|
|
|
const StyledNotificationsIcon = styled(NotificationsIcon)(({ theme }) => ({
|
|
|
|
height: '30px',
|
|
|
|
width: '30px',
|
|
|
|
color: theme.palette.neutral.main,
|
|
|
|
marginBottom: theme.spacing(1),
|
|
|
|
}));
|
|
|
|
|
2023-03-01 14:28:05 +01:00
|
|
|
interface IEmptyNotificationsProps {
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const EmptyNotifications = ({ text }: IEmptyNotificationsProps) => {
|
2023-02-27 13:04:09 +01:00
|
|
|
return (
|
|
|
|
<StyledBox>
|
|
|
|
<StyledNotificationsIcon />
|
2023-10-02 14:25:46 +02:00
|
|
|
<Typography color='neutral.main'>{text}</Typography>
|
2023-02-27 13:04:09 +01:00
|
|
|
</StyledBox>
|
|
|
|
);
|
|
|
|
};
|