mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-10 18:51:14 +00:00
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
![]() |
import Ember from 'ember';
|
||
|
import connect from 'ember-redux/components/connect';
|
||
|
|
||
|
const { Component } = Ember;
|
||
|
/**
|
||
|
* Selector function that takes a Redux Store to extract
|
||
|
* state props for the browser-view
|
||
|
* @param {Object} browseData
|
||
|
* @return {Object}
|
||
|
*/
|
||
|
const stateToComputed = ({ browse: { browseData = {} } = {} }) => ({ browseData });
|
||
|
export default connect(stateToComputed)(Component.extend({}));
|