spee.ch/react/containers/AssetInfo/index.js
2018-03-07 20:31:10 -08:00

14 lines
309 B
JavaScript

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