+ {isViewOnce && videoTime ? (
+
+ {formatDuration(videoTime)}
+
+ ) : null}
+ {caption ? (
+
{caption}
+ ) : null}
+ {media.length > 1 ? (
+
+
+ {media.map((item, index) => (
+
- ))}
-
+ onSelectAttachment(index);
+ }}
+ >
+ {item.thumbnailObjectUrl ? (
+

+ ) : (
+
+ )}
+
+ ))}
- )}
-
- ) : null}
+