feat: chat reactions
This commit is contained in:
@@ -18,6 +18,7 @@ import { LinkPreviewCard } from "@/components/chat/link-preview-card";
|
||||
import { MediaGrid } from "@/components/chat/media-grid";
|
||||
import { MediaLightbox } from "@/components/chat/media-lightbox";
|
||||
import { QuoteCard } from "@/components/chat/quote-card";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { SharedPostCard } from "@/components/chat/shared-post-card";
|
||||
import { attachmentUrl, type Attachment } from "@/lib/chat";
|
||||
|
||||
@@ -52,7 +53,14 @@ export function MessageAttachments({
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mt-1 flex flex-col gap-1.5">
|
||||
<div
|
||||
className={cn(
|
||||
"flex flex-col gap-1.5",
|
||||
// Separates attachments from body text above them. A shared post
|
||||
// leads its bubble, so there is nothing to separate from.
|
||||
attachments.some((a) => a.kind === "entity") ? undefined : "mt-1",
|
||||
)}
|
||||
>
|
||||
{media.length > 0 && (
|
||||
<MediaGrid items={media} onOpen={(i) => setLightboxAt(i)} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user