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, Button } from '@material-ui/core';
8 export interface RunProcessPanelRootDataProps {
12 export interface RunProcessPanelRootActionProps {
13 onSetStep: (step: number) => void;
16 type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps;
18 export const RunProcessPanelRoot = ({ currentStep, onSetStep, ...props }: RunProcessPanelRootProps) =>
19 <Stepper activeStep={currentStep} orientation="vertical" elevation={2}>
21 <StepLabel>Choose a workflow</StepLabel>
23 <Button variant="contained" color="primary" onClick={() => onSetStep(1)}>
29 <StepLabel>Select inputs</StepLabel>
31 <Button color="primary" onClick={() => onSetStep(0)}>
34 <Button variant="contained" color="primary">