import React from 'react'; import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/core/styles'; import noContentIcon from '../../assets/noContent.svg'; interface PropTypes { message?: string; } const useStyles = makeStyles(theme => ({ root: { display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center' }, img: { margin: theme.spacing(2), width: theme.spacing(24) } })); const EmptyState: React.FC = ({ message }) => { const classes = useStyles(); return (
No content No content

{message}

); }; export default EmptyState;