1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { RootState } from '~/store/store';
6 import { Dispatch } from 'redux';
7 import { connect } from 'react-redux';
8 import { SshKeyPanelRoot, SshKeyPanelRootDataProps, SshKeyPanelRootActionProps } from '~/views/ssh-key-panel/ssh-key-panel-root';
9 import { openSshKeyCreateDialog } from '~/store/auth/auth-action';
11 const mapStateToProps = (state: RootState): SshKeyPanelRootDataProps => {
13 sshKeys: state.auth.sshKeys
17 const mapDispatchToProps = (dispatch: Dispatch): SshKeyPanelRootActionProps => ({
19 dispatch(openSshKeyCreateDialog());
23 export const SshKeyPanel = connect(mapStateToProps, mapDispatchToProps)(SshKeyPanelRoot);