1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from "react";
6 import { FormDialog } from '~/components/form-dialog/form-dialog';
7 import { CollectionNameField, CollectionDescriptionField, CollectionProjectPickerField } from '~/views-components/form-fields/collection-form-fields';
8 import { WithDialogProps } from '~/store/dialog/with-dialog';
9 import { InjectedFormProps } from 'redux-form';
10 import { CollectionPartialCopyFormData } from '~/store/collections/collection-partial-copy-actions';
12 type DialogCollectionPartialCopyProps = WithDialogProps<string> & InjectedFormProps<CollectionPartialCopyFormData>;
14 export const DialogCollectionPartialCopy = (props: DialogCollectionPartialCopyProps) =>
16 dialogTitle='Create a collection'
17 formFields={CollectionPartialCopyFields}
18 submitLabel='Create a collection'
22 export const CollectionPartialCopyFields = () => <div>
23 <CollectionNameField />
24 <CollectionDescriptionField />
25 <CollectionProjectPickerField />