import { useI18n } from "../../../i18n"; import type { Post } from "../../../types/post"; import { autolink } from "../utils/autolink"; import { postDisplayText } from "../utils/postText"; import { CollapsibleText } from "../CollapsibleText"; import { SingleImageFrame } from "./SingleImageFrame"; export function ImageWithTextBubble({ post }: { post: Post }) { const { lang } = useI18n(); const att = post.attachments[0]; const text = postDisplayText(post, lang); if (!att) return null; return (