// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; import { Field, InjectedFormProps, WrappedFieldProps } from "redux-form"; import { Dialog, DialogTitle, DialogContent, DialogActions, Button, CircularProgress } from "@material-ui/core"; import { WithDialogProps } from "~/store/dialog/with-dialog"; import { ProjectTreePicker } from "~/views-components/project-tree-picker/project-tree-picker"; import { MAKE_A_COPY_VALIDATION, COPY_NAME_VALIDATION } from "~/validators/validators"; import { TextField } from '~/components/text-field/text-field'; export interface CopyFormData { name: string; projectUuid: string; uuid: string; } export const ProjectCopy = (props: WithDialogProps & InjectedFormProps) =>
Make a copy
; const Picker = (props: WrappedFieldProps) =>
props.input.onChange(projectUuid)} />
;