mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 00:41:24 +00:00
18 lines
607 B
JavaScript
18 lines
607 B
JavaScript
import React from 'react';
|
|
import { connect } from 'react-redux';
|
|
import { selectCurrentPage, selectHeaderLinks } from 'redux/selectors/navigation';
|
|
import { doNavigate } from 'redux/actions/navigation';
|
|
import { selectNotifications } from 'redux/selectors/subscriptions';
|
|
import SubHeader from './view';
|
|
|
|
const select = (state, props) => ({
|
|
currentPage: selectCurrentPage(state),
|
|
subLinks: selectHeaderLinks(state),
|
|
notifications: selectNotifications(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
});
|
|
|
|
export default connect(select, perform)(SubHeader);
|