lbry-desktop/ui/js/page/help/index.js
2017-08-30 13:40:51 -04:00

18 lines
562 B
JavaScript

import React from "react";
import { doAuthNavigate } from "actions/navigation";
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 => ({
doAuth: () => dispatch(doAuthNavigate("/help")),
fetchAccessToken: () => dispatch(doFetchAccessToken()),
});
export default connect(select, perform)(HelpPage);