import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { Switch, Route } from 'react-router-dom'; import NotificationsContainer from 'soapbox/features/ui/containers/notifications_container'; import ModalContainer from 'soapbox/features/ui/containers/modal_container'; import Header from './components/header'; import Footer from './components/footer'; import LandingPage from '../landing_page'; import AboutPage from '../about'; import { getSoapboxConfig } from 'soapbox/actions/soapbox'; const mapStateToProps = (state, props) => ({ instance: state.get('instance'), soapbox: getSoapboxConfig(state), }); const wave = ( ); class PublicLayout extends ImmutablePureComponent { render() { const { instance } = this.props; if (instance.isEmpty()) return null; return (
{wave}
); } } export default connect(mapStateToProps)(PublicLayout);