15 lines
355 B
JavaScript
15 lines
355 B
JavaScript
import { connect } from 'react-redux';
|
|
import View from './view';
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
// select asset
|
|
const request = show.requestList[show.request.id];
|
|
const assetKey = request.key;
|
|
const asset = show.assetList[assetKey];
|
|
// return props
|
|
return {
|
|
asset,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps, null)(View);
|