+
+
+ {name}
+
+ |
+
+
+
+
+
+
+ |
+ {type} |
+ {size && formatBytes(parseInt(size))} |
+
+
+ |
+
);
-}
+});
-function FileType({ event }: { event: NostrEvent }) {
- const mimeType = event.tags.find((t) => t[0] === "m" && t[1])?.[1];
-
- if (!mimeType) throw new Error("Missing MIME type");
-
- if (IMAGE_TYPES.includes(mimeType)) {
- return (
-