1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { Stepper, Step, StepLabel, StepContent } from '@material-ui/core';
7 import { RunProcessFirstStepDataProps, RunProcessFirstStepActionProps, RunProcessFirstStep } from '~/views/run-process-panel/run-process-first-step';
8 import { RunProcessSecondStepDataProps, RunProcessSecondStepActionProps, RunProcessSecondStepForm } from '~/views/run-process-panel/run-process-second-step';
10 export type RunProcessPanelRootDataProps = {
12 } & RunProcessFirstStepDataProps & RunProcessSecondStepDataProps;
14 export type RunProcessPanelRootActionProps = RunProcessFirstStepActionProps & RunProcessSecondStepActionProps;
16 type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps;
18 export const RunProcessPanelRoot = ({ currentStep, onSearch, onSetStep, onRunProcess, onSetWorkflow, workflows, selectedWorkflow }: RunProcessPanelRootProps) =>
19 <Stepper activeStep={currentStep} orientation="vertical" elevation={2}>
21 <StepLabel>Choose a workflow</StepLabel>
25 selectedWorkflow={selectedWorkflow}
28 onSetWorkflow={onSetWorkflow} />
32 <StepLabel>Select inputs</StepLabel>
34 <RunProcessSecondStepForm />
35 {/* <RunProcessSecondStep onSetStep={onSetStep} onRunProcess={onRunProcess} /> */}