import React, { useContext } from 'react';
import { GradingInstructionContext } from '../context/GradingInstructionContext';
import { QuestionContext } from '../context/QuestionContext';
const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
    const { EditorComponent } = useContext(GradingInstructionContext);
    const { displayNumber } = useContext(QuestionContext);
    return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, EditorComponent ? (React.createElement(EditorComponent, { element: element, displayNumber: displayNumber })) : (renderChildNodes(element))));
};
export default AnswerGradingInstruction;
//# sourceMappingURL=AnswerGradingInstruction.js.map