"use client"; import { Copy, MessageSquare, Trash2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import type { PublicChatSnapshotDetail } from "@/contracts/types/chat-threads.types"; interface PublicChatSnapshotRowProps { snapshot: PublicChatSnapshotDetail; canDelete: boolean; onCopy: (snapshot: PublicChatSnapshotDetail) => void; onDelete: (snapshot: PublicChatSnapshotDetail) => void; isDeleting?: boolean; } export function PublicChatSnapshotRow({ snapshot, canDelete, onCopy, onDelete, isDeleting = false, }: PublicChatSnapshotRowProps) { const formattedDate = new Date(snapshot.created_at).toLocaleDateString(undefined, { year: "numeric", month: "short", day: "numeric", }); return (

{snapshot.thread_title}

{formattedDate} {snapshot.message_count}
(e.target as HTMLInputElement).select()} />
{canDelete && ( )}
); }