lbry-desktop/ui/page/settingsStripeAccount/index.js
2021-08-10 22:06:13 +02:00

15 lines
464 B
JavaScript

import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import StripeAccountConnection from './view';
import { selectUser } from 'redux/selectors/user';
import { doToast } from 'redux/actions/notifications';
const select = (state) => ({
user: selectUser(state),
});
const perform = (dispatch) => ({
doToast: (options) => dispatch(doToast(options)),
});
export default withRouter(connect(select, perform)(StripeAccountConnection));