src/applications/disability-benefits/686c-674-v2/components/ArrayViewField.jsx
import React from 'react';
import { capitalize } from 'lodash';
export default function SpouseViewField({ formData }) {
const { first, middle, last, suffix } = formData.fullName;
return (
<div className="vads-u-display--flex">
<h4>
{capitalize(first)} {capitalize(middle && `${middle} `)}
{capitalize(last)}
{capitalize(suffix && `, ${suffix}`)}
</h4>
<br />
</div>
);
}