// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { InjectedFormProps, Field } from 'redux-form'; import { WithDialogProps } from 'store/dialog/with-dialog'; import { CollectionCreateFormDialogData, COLLECTION_CREATE_FORM_NAME } from 'store/collections/collection-create-actions'; import { FormDialog } from 'components/form-dialog/form-dialog'; import { CollectionNameField, CollectionDescriptionField, CollectionStorageClassesField } from 'views-components/form-fields/collection-form-fields'; import { FileUploaderField } from '../file-uploader/file-uploader'; import { ResourceParentField } from '../form-fields/resource-form-fields'; import { CreateCollectionPropertiesForm } from 'views-components/collection-properties/create-collection-properties-form'; import { CustomStyleRulesCallback } from 'common/custom-theme'; import { FormGroup, FormLabel } from '@mui/material'; import { WithStyles } from '@mui/styles'; import withStyles from '@mui/styles/withStyles'; import { resourcePropertiesList } from 'views-components/resource-properties/resource-properties-list'; type CssRules = 'propertiesForm'; const styles: CustomStyleRulesCallback = theme => ({ propertiesForm: { marginTop: theme.spacing(2), marginBottom: theme.spacing(2), }, }); type DialogCollectionProps = WithDialogProps<{}> & InjectedFormProps; export const DialogCollectionCreate = (props: DialogCollectionProps) => ; const CreateCollectionPropertiesList = resourcePropertiesList(COLLECTION_CREATE_FORM_NAME); const CollectionAddFields = withStyles(styles)( ({ classes }: WithStyles) =>
Properties
);