import React from 'react'; import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/core/styles'; interface PropTypes { tagline?: string; message?: string; } const useStyles = makeStyles(theme => ({ root: { display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', marginTop: theme.spacing(6) }, content: { margin: theme.spacing(2) } })); const Message: React.FC = React.memo(({ tagline, message, children }) => { const classes = useStyles(); return (
{children}
{tagline} {message}
); }); export default Message;