2026-05-25 05:25:57 +08:00
|
|
|
import type { Post } from "../../../types/post";
|
2026-05-26 12:07:13 +08:00
|
|
|
import { useI18n } from "../../../i18n";
|
2026-05-25 05:25:57 +08:00
|
|
|
import { autolink } from "../utils/autolink";
|
2026-05-26 12:07:13 +08:00
|
|
|
import { postDisplayText } from "../utils/postText";
|
2026-05-25 05:25:57 +08:00
|
|
|
|
|
|
|
|
export function TextBubble({ post }: { post: Post }) {
|
2026-05-26 12:07:13 +08:00
|
|
|
const { lang } = useI18n();
|
2026-05-25 05:25:57 +08:00
|
|
|
return (
|
|
|
|
|
<div className="whitespace-pre-wrap break-words text-[14px] leading-snug text-neutral-100">
|
2026-05-26 12:07:13 +08:00
|
|
|
{autolink(postDisplayText(post, lang))}
|
2026-05-25 05:25:57 +08:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|