import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './Page.less'; export default class Page extends Component { render() { const { className, children, loading = false, inner = false } = this.props; const loadingStyle = { height: 'calc(100vh - 184px)', overflow: 'hidden', }; return (
{loading ? 'Loading' : ''} {children}
); } } Page.propTypes = { className: PropTypes.string, children: PropTypes.node, loading: PropTypes.bool, inner: PropTypes.bool, };