Update page.tsx

This commit is contained in:
NotII
2025-05-29 12:48:38 +01:00
parent 343a66523d
commit ee5fc4a9d6

View File

@@ -8,11 +8,17 @@ export const metadata: Metadata = {
description: "View and respond to customer messages", description: "View and respond to customer messages",
}; };
export default async function ChatDetailPage({ params }: { params: { id: string } }) { interface PageProps {
const chatId = await params.id; params: Promise<{
id: string;
}>;
}
export default async function ChatDetailPage({ params }: PageProps) {
const { id } = await params;
return ( return (
<Dashboard> <Dashboard>
<ChatDetail chatId={chatId} /> <ChatDetail chatId={id} />
</Dashboard> </Dashboard>
); );
} }