1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { CommandInputParameter } from 'models/workflow';
7 import { TextField } from '@mui/material';
8 import { required } from 'components/workflow-inputs-form/validators';
10 export interface WorkflowInputProps {
11 input: CommandInputParameter;
13 export const WorkflowInput = ({ input }: WorkflowInputProps) =>
16 label={`${input.label || input.id}${required(input)() ? '*' : ''}`}
18 helperText={input.doc}