Updates
This commit is contained in:
@@ -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]">
|
||||
|
||||
Reference in New Issue
Block a user