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

15 lines
306 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import View from './view';
2018-02-14 12:30:30 -08:00
import selectAsset from 'selectors/asset';
const mapStateToProps = ({ show }) => {
2018-02-12 20:01:02 -08:00
// select asset
2018-02-14 12:30:30 -08:00
const asset = selectAsset(show);
2018-02-12 20:01:02 -08:00
// return props
return {
asset,
};
2018-02-04 16:40:28 -08:00
};
export default connect(mapStateToProps, null)(View);