import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Helmet } from'react-helmet'; const mapStateToProps = state => ({ siteTitle: state.getIn(['instance', 'title']), }); class SoapboxHelmet extends React.Component { static propTypes = { siteTitle: PropTypes.string.isRequired, children: PropTypes.node, }; render() { const { siteTitle, children } = this.props; return ( {children} ); } } export default connect(mapStateToProps)(SoapboxHelmet);