import React from 'react'; import { Link } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; export type HeaderProps = { hasTopLink?: boolean; }; const messageNumber = Math.floor(Math.random() * 6) + 1; export const Header: React.FC = ({hasTopLink, children}) => { const { t } = useTranslation(); return (

{hasTopLink ? {t('title')} : t('title')}

{t(`_welcomeMessage.pattern${messageNumber}`)}

{children}
); };