import React, { useContext } from 'react';
import { AttachmentContext, withAttachmentContext } from '../context/AttachmentContext';
function Attachment({ element, renderChildNodes }) {
    const { displayNumber, isExternal } = useContext(AttachmentContext);
    return isExternal ? (React.createElement("div", { id: displayNumber, className: "attachments-attachment e-mrg-0 e-mrg-t-8", "data-annotation-anchor": displayNumber }, renderChildNodes(element))) : null;
}
export default React.memo(withAttachmentContext(Attachment));
//# sourceMappingURL=Attachment.js.map