spee.ch/react/components/AssetTitle/index.js
2018-02-14 18:02:10 -08:00

14 lines
328 B
JavaScript

import { connect } from 'react-redux';
import View from './view';
import { selectAsset } from 'selectors/show';
const mapStateToProps = ({ show }) => {
// select title
const { claimData: { title } } = selectAsset(show);
// return props
return {
title,
};
};
export default connect(mapStateToProps, null)(View);