15088: Adds initial link account UI
[arvados-workbench2.git] / src / views / link-account-panel / link-account-panel.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { RootState } from '~/store/store';
6 import { Dispatch } from 'redux';
7 import { compose } from 'redux';
8 import { reduxForm } from 'redux-form';
9 import { connect } from 'react-redux';
10 import { getResource, ResourcesState } from '~/store/resources/resources';
11 import { Resource } from '~/models/resource';
12 import { User, UserResource } from '~/models/user';
13 import {
14     LinkAccountPanelRoot,
15     LinkAccountPanelRootDataProps,
16     LinkAccountPanelRootActionProps
17 } from '~/views/link-account-panel/link-account-panel-root';
18
19 const mapStateToProps = (state: RootState): LinkAccountPanelRootDataProps => {
20     return {
21         user: state.auth.user
22     };
23 };
24
25 const mapDispatchToProps = (dispatch: Dispatch): LinkAccountPanelRootActionProps => ({});
26
27 export const LinkAccountPanel = connect(mapStateToProps, mapDispatchToProps)(LinkAccountPanelRoot);