import * as React from 'react'; import type { FormRowProps } from '../../FormRow/FormRow'; import { FormRow } from '../../FormRow/FormRow'; import type { FormRowHelperTextOwnProps } from '../../FormRow/FormRowHelperText'; import { FormRowLabel } from '../../FormRow/FormRowLabel'; /** @inheritdoc */ export interface StaticFieldProps extends Omit, Partial { value?: React.ReactNode; } export const StaticField: React.FC = function StaticField({ error, hint, justify, label, tooltip, value, warning, labelHidden, required, ...rest }) { rest satisfies Record; return ( {label && ( {label} )}
{value}
); };