spee.ch/react/components/SEO/index.js

17 lines
436 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import View from './view';
2018-02-23 20:00:46 +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
};
export default connect(mapStateToProps, null)(View);