import classnames from 'classnames'; import { Component } from 'react'; import injectStyle, { WithStylesProps } from 'react-jss'; import ReactLoader from 'react-loader'; import { Theme } from '../../../themes'; const styles = (theme: Theme) => ({ container: { position: 'relative', height: 60, }, loader: {}, color: theme.colorText, }); interface IProps extends WithStylesProps { className?: string; color?: string; } class LoaderComponent extends Component { render() { const { classes, className, color } = this.props; return (
& Readonly parentClassName={classes.loader} />
); } } export default injectStyle(styles, { injectTheme: true })(LoaderComponent);