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