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