import React, { memo, ReactElement } from 'react'; import styled from 'styled-components'; import Text from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import unauthorizedImage from './../assets/unauthorized.jpg'; const ImageWrapper = styled.div` display: flex; justify-content: center; `; const Image = styled.div` height: 600px; width: 800px; max-width: 100%; background: no-repeat center center url(${unauthorizedImage}); background-size: 100%; `; interface IProps { title?: string | ReactElement; description?: string | ReactElement; children?: ReactElement; className?: string; } export function Unauthorized({ className, title, description, children }: IProps) { return (