1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { reduxForm } from 'redux-form';
6 import SharingInvitationFormComponent from './sharing-invitation-form-component';
7 import { SHARING_INVITATION_FORM_NAME } from 'store/sharing-dialog/sharing-dialog-types';
8 import { PermissionLevel } from 'models/permission';
10 interface InvitationFormData {
11 permissions: PermissionLevel;
12 invitedPeople: string[];
19 export const SharingInvitationForm =
20 reduxForm<InvitationFormData, SaveProps>({
21 form: SHARING_INVITATION_FORM_NAME,
23 permissions: PermissionLevel.CAN_READ,
26 })(SharingInvitationFormComponent);