This commit is contained in:
NotII
2025-03-18 04:03:48 +01:00
parent d18f477214
commit e0752fd7bb
5 changed files with 303 additions and 47 deletions

View File

@@ -33,6 +33,7 @@ interface Chat {
messages: Message[];
lastUpdated: string;
orderId?: string;
telegramUsername?: string | null;
}
// Helper function to extract filename from URL
@@ -384,7 +385,16 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
<Button variant="ghost" size="icon" onClick={handleBackClick}>
<ArrowLeft className="h-5 w-5" />
</Button>
<h3 className="text-lg font-semibold">Chat with Customer {chat.buyerId.slice(-4)}</h3>
<div className="flex flex-col">
<h3 className="text-lg font-semibold">
Chat with Customer {chat.buyerId.slice(-4)}
</h3>
{chat.telegramUsername && (
<span className="text-sm text-muted-foreground">
@{chat.telegramUsername}
</span>
)}
</div>
</div>
<div className="flex-1 overflow-y-auto p-2 space-y-2 pb-[58px]">