import { IconExclamationCircle } from '@material-hu/icons/tabler';
import Stack from '@material-hu/mui/Stack';
import Typography from '@material-hu/mui/Typography';

import HuAvatar from '@material-hu/components/design-system/Avatar';

import { useLokaliseTranslation } from 'src/utils/i18n';

const NotificationsErrorState = () => {
  const { t } = useLokaliseTranslation('notifications_center');

  return (
    <Stack
      sx={{
        width: '100%',
        p: 4,
        alignItems: 'center',
        textAlign: 'center',
      }}
    >
      <HuAvatar
        Icon={IconExclamationCircle}
        color="error"
        size="large"
      />
      <Typography
        sx={{ mt: 2 }}
        variant="globalM"
        fontWeight="fontWeightSemiBold"
      >
        {t('error_message_title')}
      </Typography>
      <Typography variant="globalXS">
        {t('error_message_description')}
      </Typography>
    </Stack>
  );
};

export default NotificationsErrorState;
