diff options
Diffstat (limited to 'src/components/ui/FullscreenLoader/index.js')
-rw-r--r-- | src/components/ui/FullscreenLoader/index.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/ui/FullscreenLoader/index.js b/src/components/ui/FullscreenLoader/index.js new file mode 100644 index 000000000..bff5189c5 --- /dev/null +++ b/src/components/ui/FullscreenLoader/index.js | |||
@@ -0,0 +1,26 @@ | |||
1 | import React from 'react'; | ||
2 | import injectSheet from 'react-jss'; | ||
3 | import classnames from 'classnames'; | ||
4 | |||
5 | import Loader from '../Loader'; | ||
6 | |||
7 | import styles from './styles'; | ||
8 | |||
9 | export default injectSheet(styles)(({ classes, className, title, children }) => ( | ||
10 | <div className={classes.wrapper}> | ||
11 | <div | ||
12 | className={classnames({ | ||
13 | [`${classes.component}`]: true, | ||
14 | [`${className}`]: className, | ||
15 | })} | ||
16 | > | ||
17 | <h1 className={classes.title}>{title}</h1> | ||
18 | <Loader color="#FFF" /> | ||
19 | {children && ( | ||
20 | <div className={classes.content}> | ||
21 | {children} | ||
22 | </div> | ||
23 | )} | ||
24 | </div> | ||
25 | </div> | ||
26 | )); | ||