import React from 'react'; import { Link } from 'react-router-dom'; import { welcomeMessage } from '../misc/welcome-message'; export type HeaderProps = { hasTopLink?: boolean; }; export const Header: React.FC = ({hasTopLink, children}) => { const message = React.useMemo( () => welcomeMessage[Math.floor(Math.random() * welcomeMessage.length)] , []); return (

{hasTopLink ? みす廃アラート : 'みす廃アラート'}

{message}

{children}
); };