import { isEmpty } from 'lodash'; import React from 'react'; import type { ILayoutProps } from '../../../presentation'; export function ManualExecutionFieldLayout(props: ILayoutProps) { const { label, help, input, actions, validation, required } = props; const showLabel = !isEmpty(label) || !isEmpty(help); const { hidden, messageNode } = validation; return (
{showLabel && ( )}
{input} {actions}
{!hidden &&
{messageNode}
}
); }