import page from '@automattic/calypso-router'; import PropTypes from 'prop-types'; import { Component } from 'react'; import HeaderCake from 'calypso/components/header-cake'; import Main from 'calypso/components/main'; import './style.scss'; class LoadingPlaceholder extends Component { static propTypes = { path: PropTypes.string, title: PropTypes.string.isRequired, isFullWidth: PropTypes.bool.isRequired, }; goBack = () => { page.back( this.props.path || '/' ); }; render() { return (
{ this.props.title } { this.props.children }
); } } export default LoadingPlaceholder;