Files
Arkie-Library-Frontend/src/components/messageStream/bubbles/ImageBubble.tsx

15 lines
375 B
TypeScript
Raw Normal View History

import type { Post } from "../../../types/post";
import { SingleImageFrame } from "./SingleImageFrame";
export function ImageBubble({ post }: { post: Post }) {
const att = post.attachments[0];
if (!att) return null;
return (
<SingleImageFrame
postId={post.id}
attachment={att}
showFilename={post.categorySlug === "official-assets"}
/>
);
}