2018-03-15 20:05:39 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import View from './view';
|
2018-02-23 20:00:46 +01:00
|
|
|
|
2018-03-15 20:05:39 +01:00
|
|
|
const mapStateToProps = ({ site }) => {
|
|
|
|
const { defaultDescription, defaultThumbnail, description: siteDescription, host: siteHost, title: siteTitle, twitter: siteTwitter } = site;
|
|
|
|
return {
|
|
|
|
defaultDescription,
|
|
|
|
defaultThumbnail,
|
|
|
|
siteDescription,
|
|
|
|
siteHost,
|
|
|
|
siteTitle,
|
|
|
|
siteTwitter,
|
|
|
|
};
|
2018-02-23 20:00:46 +01:00
|
|
|
};
|
|
|
|
|
2018-03-15 20:05:39 +01:00
|
|
|
export default connect(mapStateToProps, null)(View);
|