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 { RunProcessSecondStepForm } from './run-process-second-step';
10 export type RunProcessPanelRootDataProps = {
12 } & RunProcessFirstStepDataProps;
14 export type RunProcessPanelRootActionProps = RunProcessFirstStepActionProps & {
15 runProcess: () => void;
18 type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps;
20 export const RunProcessPanelRoot = ({ runProcess, currentStep, onSearch, onSetStep, onSetWorkflow, workflows, selectedWorkflow }: RunProcessPanelRootProps) =>
21 <Stepper activeStep={currentStep} orientation="vertical" elevation={2}>
23 <StepLabel>Choose a workflow</StepLabel>
27 selectedWorkflow={selectedWorkflow}
30 onSetWorkflow={onSetWorkflow} />
34 <StepLabel>Select inputs</StepLabel>
36 <RunProcessSecondStepForm
37 goBack={() => onSetStep(0)}
38 runProcess={runProcess} />