/** @format */ /** * External dependencies */ import { Component, Fragment } from '@wordpress/element'; import { Router, Route, Switch } from 'react-router-dom'; import { Slot } from 'react-slot-fill'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; import Header from 'layout/header'; import { Controller, getPages } from './controller'; import history from 'lib/history'; import Notices from './notices'; class Layout extends Component { render() { const { isEmbeded, ...restProps } = this.props; return (