// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { Stepper, Step, StepLabel, StepContent, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core'; import { RunProcessFirstStepDataProps, RunProcessFirstStepActionProps, RunProcessFirstStep } from 'views/run-process-panel/run-process-first-step'; import { RunProcessSecondStepForm } from './run-process-second-step'; export type RunProcessPanelRootDataProps = { currentStep: number; } & RunProcessFirstStepDataProps; export type RunProcessPanelRootActionProps = RunProcessFirstStepActionProps & { runProcess: () => void; }; type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps; type CssRules = 'stepper'; const styles: StyleRulesCallback = theme => ({ stepper: { overflow: "scroll", } }); export const RunProcessPanelRoot = withStyles(styles)( ({ runProcess, currentStep, onSearch, onSetStep, onSetWorkflow, workflows, selectedWorkflow, classes }: WithStyles & RunProcessPanelRootProps) => Choose a workflow Select inputs onSetStep(0)} runProcess={runProcess} /> );