src/applications/vaos/components/Section.jsx
import React from 'react';
import PropTypes from 'prop-types';
export default function Section({ children, heading, level = 2 }) {
const Heading = `h${level}`;
return (
<>
<Heading className="vads-u-font-size--h5 vads-u-margin-bottom--0">
{heading}
</Heading>
{children}
</>
);
}
Section.propTypes = {
children: PropTypes.node,
heading: PropTypes.string,
level: PropTypes.number,
};