import { Theme, WithStyles, withStyles } from '@material-ui/core'; import * as React from 'react'; import ProgressBar from 'react-progress-bar-plus'; import 'react-progress-bar-plus/lib/progress-bar.css'; const styles = (theme: Theme) => ({ root: { '& .react-progress-bar-percent': { backgroundColor: theme.palette.primary.light, boxShadow: `0 0 10px ${theme.palette.primary.light}, 0 0 5px ${theme.palette.primary.light}`, }, }, }); interface Props { isLoading?: boolean; } class Progress extends React.PureComponent> { public render() { return ( ); } } export default withStyles(styles)(Progress) as React.ComponentClass;