import { ChatExportCommentWithUser, ChatExportWithUser, } from "app-types/chat-export"; import { PreviewMessage } from "../message"; import { Avatar, AvatarFallback, AvatarImage } from "ui/avatar"; import { Tooltip, TooltipContent, TooltipTrigger } from "ui/tooltip"; import { formatDate } from "date-fns"; import Particles from "ui/particles"; import Comments from "./comments"; export default function ChatPreview({ thread, comments, }: { thread: ChatExportWithUser; comments: ChatExportCommentWithUser[] }) { return (

{thread.title}

{formatDate(thread.exportedAt, "MMM d, yyyy")}
{thread.exporterName?.[0]?.toUpperCase()}
{thread.exporterName}
{thread.messages.map((message, index) => { return ( ); })}
); }