aboutsummaryrefslogtreecommitdiff
path: root/src/components/EmptyState/EmptyState.tsx
blob: b103e3c59e746acdbd1ea21d17b852c0d48798e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/core/styles';
import noContentIcon from '../../assets/noContent.svg';

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 = () => {
  const classes = useStyles();

  return (
    <div className={classes.root}>
      <img src={noContentIcon} className={classes.img} alt="No content" />
      <Typography variant="h5">
        No content
      </Typography>
    </div>
  );
};

export default EmptyState;