// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { RootState } from '~/store/store'; import { Dispatch } from 'redux'; import { compose } from 'redux'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { getResource, ResourcesState } from '~/store/resources/resources'; import { Resource } from '~/models/resource'; import { User, UserResource } from '~/models/user'; import { LinkAccountPanelRoot, LinkAccountPanelRootDataProps, LinkAccountPanelRootActionProps } from '~/views/link-account-panel/link-account-panel-root'; const mapStateToProps = (state: RootState): LinkAccountPanelRootDataProps => { return { user: state.auth.user }; }; const mapDispatchToProps = (dispatch: Dispatch): LinkAccountPanelRootActionProps => ({}); export const LinkAccountPanel = connect(mapStateToProps, mapDispatchToProps)(LinkAccountPanelRoot);