You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
526 B
16 lines
526 B
import { connect } from 'react-redux';
|
|
import FeaturedTags from '../components/featured_tags';
|
|
import { makeGetAccount } from 'flavours/glitch/selectors';
|
|
import { List as ImmutableList } from 'immutable';
|
|
|
|
const mapStateToProps = () => {
|
|
const getAccount = makeGetAccount();
|
|
|
|
return (state, { accountId }) => ({
|
|
account: getAccount(state, accountId),
|
|
featuredTags: state.getIn(['user_lists', 'featured_tags', accountId, 'items'], ImmutableList()),
|
|
});
|
|
};
|
|
|
|
export default connect(mapStateToProps)(FeaturedTags);
|