1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common/Notifications/EmptyNotifications.tsx

31 lines
799 B
TypeScript
Raw Normal View History

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),
}));
interface IEmptyNotificationsProps {
text: string;
}
export const EmptyNotifications = ({ text }: IEmptyNotificationsProps) => {
return (
<StyledBox>
<StyledNotificationsIcon />
<Typography color='neutral.main'>{text}</Typography>
</StyledBox>
);
};