import { push } from 'connected-react-router';
import { connect } from 'react-redux';
// import { actions } from '@bufferapp/analyze-profile-selector';
import NavSidebar from './components/NavSidebar';
export default connect(
state => ({
daysRemaining: state.account.trialDaysRemaining,
onTrial: state.account.onTrial,
isOwner: state.profiles.isOwner,
organizationId: state.profiles.organizationId,
channels: state.navSidebar.channels,
isGlobalUser: state.appSidebar.user.productlinks && state.appSidebar.user.productlinks.length > 0,
}),
dispatch => ({
onClick: path => dispatch(push(path)),
}),
)(NavSidebar);
export reducer, { actions, actionTypes } from './reducer';
|