2018-02-07 19:52:09 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import View from './view';
|
2018-02-14 21:30:30 +01:00
|
|
|
import selectAsset from 'selectors/asset';
|
2018-01-30 18:00:02 +01:00
|
|
|
|
2018-02-07 19:52:09 +01:00
|
|
|
const mapStateToProps = ({ show }) => {
|
2018-02-13 05:01:02 +01:00
|
|
|
// select asset
|
2018-02-14 21:30:30 +01:00
|
|
|
const asset = selectAsset(show);
|
2018-02-13 05:01:02 +01:00
|
|
|
// return props
|
|
|
|
return {
|
|
|
|
asset,
|
2018-02-07 19:52:09 +01:00
|
|
|
};
|
2018-02-05 01:40:28 +01:00
|
|
|
};
|
2018-02-01 01:43:15 +01:00
|
|
|
|
2018-02-07 19:52:09 +01:00
|
|
|
export default connect(mapStateToProps, null)(View);
|