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 '@material-ui/core';
8 import { required } from 'components/workflow-inputs-form/validators';
10 export interface WorkflowInputProps {
11 input: CommandInputParameter;
13 export const WorkflowInput = ({ input }: WorkflowInputProps) =>
15 label={`${input.label || input.id}${required(input)() ? '*' : ''}`}
17 helperText={input.doc}