anvil/striker-ui/components/Spinner.tsx

30 lines
630 B
TypeScript
Raw Normal View History

2021-05-28 00:31:34 +00:00
import { makeStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import { TEXT } from '../lib/consts/DEFAULT_THEME';
2021-05-28 00:31:34 +00:00
const useStyles = makeStyles(() => ({
root: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
marginTop: '3em',
},
spinner: {
color: TEXT,
2021-05-28 00:31:34 +00:00
variant: 'indeterminate',
size: '50em',
},
}));
const Spinner = (): JSX.Element => {
const classes = useStyles();
return (
<div className={classes.root}>
<CircularProgress className={classes.spinner} />
</div>
);
};
export default Spinner;