import React from 'react';
import { queryAncestors } from '../../dom-utils';
import { gradingInstructionContent } from './gradingInstructionContent';
function RenderAttachmentElements({ element, renderChildNodes }) {
    const renderOption = queryAncestors(element, gradingInstructionContent) != null ? 0 /* RenderOptions.RenderHTML */ : 1 /* RenderOptions.SkipHTML */;
    return React.createElement(React.Fragment, null, renderChildNodes(element, renderOption));
}
export default React.memo(RenderAttachmentElements);
//# sourceMappingURL=RenderAttachmentElements.js.map