lbry-desktop/ui/js/page/help/index.js
2017-07-21 17:45:37 -04:00

18 lines
566 B
JavaScript

import React from "react";
import { doNavigate } from "actions/app";
import { connect } from "react-redux";
import { doFetchAccessToken } from "actions/user";
import { selectAccessToken, selectUser } from "selectors/user";
import HelpPage from "./view";
const select = state => ({
user: selectUser(state),
accessToken: selectAccessToken(state),
});
const perform = dispatch => ({
navigate: (path, params) => dispatch(doNavigate(path, params)),
fetchAccessToken: () => dispatch(doFetchAccessToken()),
});
export default connect(select, perform)(HelpPage);