message: parseHeader()

in src/pages/Notifications/index.tsx [71:109]


            message: parseHeader((result.start !== null && result.start) || result.created),
            type: 'header',
          },
        ]);
      }
      return setCombinedArray((combinedArray) => [...combinedArray, result]);
    });
  }, [announcements, t]);

  const parsePublished = (time: number | undefined) => {
    if (time === undefined) {
      return t('notifications.dateMissing');
    }

    const dateString = spacetime(time).format('{date-pad}.{month-iso}.{year}, {hour-24-pad}.{minute-pad} GMT{offset}');
    return dateString;
  };

  return (
    <div style={{ display: 'flex', flex: 1 }}>
      <ErrorBoundary message={'notifications error'}>
        <Content>
          <Header>{t('notifications.header')}</Header>
          {status === 'Loading' && (
            <div style={{ textAlign: 'center', margin: '2rem 0' }}>
              <Spinner md />
            </div>
          )}

          {status === 'Ok' && combinedArray.length === 0 && (
            <ItemRow margin="md">
              <GenericError icon="searchNotFound" message={t('error.no-results')} />
            </ItemRow>
          )}

          {status === 'Ok' && (
            <div data-testid={'notification-results'}>
              {combinedArray.map((announcement) => {
                if (announcement.type === 'header') {