import React, { useContext } from 'react';
import SectionElement from '../SectionElement';
import { SectionContext, withSectionContext } from '../context/SectionContext';
import { sectionTitleId } from '../../ids';
function Section({ element, renderChildNodes }) {
    const { displayNumber } = useContext(SectionContext);
    return (React.createElement(SectionElement, { "aria-labelledby": sectionTitleId(displayNumber) },
        React.createElement("div", { className: "e-results-section-wrapper" }, renderChildNodes(element))));
}
export default React.memo(withSectionContext(Section));
//# sourceMappingURL=Section.js.map