import React, { useContext } from 'react';
import { AttachmentContext, withAttachmentContext } from '../context/AttachmentContext';
function Attachment({ element, renderChildNodes }) {
    const { isExternal } = useContext(AttachmentContext);
    return !isExternal ? React.createElement("span", { className: "exam-attachment e-mrg-b-2" }, renderChildNodes(element)) : null;
}
export default React.memo(withAttachmentContext(Attachment));
//# sourceMappingURL=Attachment.js.map