import { isUndefined } from 'lodash'; import React from 'react'; import type { IFormInputValidation } from '../inputs'; import type { ILayoutProps } from './interface'; import { ValidationMessage } from '../validation'; import './StandardFieldLayout.css'; export function StandardFieldLayout(props: ILayoutProps) { const { label, help, input, actions, validation = {} as IFormInputValidation } = props; const { hidden, messageNode, category } = validation; const showLabel = !isUndefined(label) || !isUndefined(help); return (