import { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import injectStyle from 'react-jss'; import classnames from 'classnames'; import Loader from '../Loader'; import styles from './styles'; class FullscreenLoader extends Component { static propTypes = { className: PropTypes.string, title: PropTypes.string, classes: PropTypes.object.isRequired, theme: PropTypes.object.isRequired, spinnerColor: PropTypes.string, children: PropTypes.node, }; static defaultProps = { className: null, spinnerColor: null, children: null, }; render() { const { classes, title, children, spinnerColor, className, theme } = this.props; return (