feat: add telegram-style resource stream
This commit is contained in:
10
src/components/messageStream/bubbles/TextBubble.tsx
Normal file
10
src/components/messageStream/bubbles/TextBubble.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Post } from "../../../types/post";
|
||||
import { autolink } from "../utils/autolink";
|
||||
|
||||
export function TextBubble({ post }: { post: Post }) {
|
||||
return (
|
||||
<div className="whitespace-pre-wrap break-words text-[14px] leading-snug text-neutral-100">
|
||||
{autolink(post.text ?? "")}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user