import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Route, Link } from 'react-router-dom'; import { Typography, Button } from '@material-ui/core'; const styles = theme => ({ errorWrap: { background: theme.palette.common.white, boxShadow: theme.shadows[2], borderRadius: '50%', width: 500, height: 500, [theme.breakpoints.down('sm')]: { width: 300, height: 300, }, display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column', position: 'relative', margin: `${theme.spacing(3)}px auto`, }, title: { color: theme.palette.primary.main, textShadow: `10px 6px 50px ${theme.palette.primary.main}`, [theme.breakpoints.down('sm')]: { fontSize: '4rem' }, }, deco: { boxShadow: theme.shadows[2], position: 'absolute', borderRadius: 2, }, button: { marginTop: 50 } }); const ErrorWrap = (props) => ( { if (staticContext) { staticContext.status = 404; // eslint-disable-line } const { classes, title, desc } = props; return (
{title} {desc}
); }} /> ); ErrorWrap.propTypes = { classes: PropTypes.object.isRequired, desc: PropTypes.string.isRequired, title: PropTypes.string.isRequired, }; export default withStyles(styles)(ErrorWrap);