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

16 lines
355 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import View from './view';
const mapStateToProps = ({ show }) => {
2018-02-13 05:01:02 +01:00
// select asset
const request = show.requestList[show.request.id];
2018-02-14 21:09:57 +01:00
const assetKey = request.key;
const asset = show.assetList[assetKey];
2018-02-13 05:01:02 +01:00
// return props
return {
asset,
};
2018-02-05 01:40:28 +01:00
};
export default connect(mapStateToProps, null)(View);