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

17 lines
527 B
JavaScript

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