import { Theme, Typography, withStyles, WithStyles } from '@material-ui/core'; import * as React from 'react'; const styles = (theme: Theme) => ({ page: { minHeight: '100vh', display: 'flex', flexDirection: 'column' as 'column', alignItems: 'center', justifyContent: 'space-around', background: theme.palette.grey[50], }, card: { width: 400, }, links: { margin: theme.spacing(2), '& a': { color: theme.palette.grey[800], textDecoration: 'none', }, }, title: { fontSize: '3rem', fontWeight: 'lighter' as 'lighter', color: theme.palette.grey[800], }, }); interface Props extends WithStyles { links?: JSX.Element; title: string; } const AccountPage: React.FC = ({ classes, children, links, title }) => (
{title} {children}
{links}
); export default withStyles(styles)(AccountPage);