aboutsummaryrefslogtreecommitdiff
path: root/src/components/EmptyState/EmptyState.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-14 04:09:56 +0300
committereug-vs <eug-vs@keemail.me>2020-08-14 04:19:52 +0300
commit917d83bfb70d863944df62fb3ca254ba74e67e6e (patch)
treef3739faea2ad5ee23d083d2ab1d23f67db1a9170 /src/components/EmptyState/EmptyState.tsx
parentdc0d09f568ca9eeda4978c4750b548ba81688c23 (diff)
downloadwhich-ui-917d83bfb70d863944df62fb3ca254ba74e67e6e.tar.gz
feat: add EmptyState component
Diffstat (limited to 'src/components/EmptyState/EmptyState.tsx')
-rw-r--r--src/components/EmptyState/EmptyState.tsx33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/components/EmptyState/EmptyState.tsx b/src/components/EmptyState/EmptyState.tsx
new file mode 100644
index 0000000..b103e3c
--- /dev/null
+++ b/src/components/EmptyState/EmptyState.tsx
@@ -0,0 +1,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;