+ {item.files.length === 0 ? (
+ No Attachments
+ ):(
+ item.files.map((file, index) => {
+ if (file.type === "pdf") return (
+
+
+ setActiveFileItem(null)}
+ item={activeFileItem}
+ context={context_string}
+ />
+
)
- })}
-
+ else if (file.type === "image") return (
+
+
+ setActiveImageItem(null)}
+ item={activeImageItem}
+ context={context_string}
+ />
+
+ )
+ else if (file.type === "download") return (
+
+ )
+ })
+ )}
+
+