Update page.tsx
This commit is contained in:
@@ -8,11 +8,17 @@ export const metadata: Metadata = {
|
||||
description: "View and respond to customer messages",
|
||||
};
|
||||
|
||||
export default async function ChatDetailPage({ params }: { params: { id: string } }) {
|
||||
const chatId = await params.id;
|
||||
interface PageProps {
|
||||
params: Promise<{
|
||||
id: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
export default async function ChatDetailPage({ params }: PageProps) {
|
||||
const { id } = await params;
|
||||
return (
|
||||
<Dashboard>
|
||||
<ChatDetail chatId={chatId} />
|
||||
<ChatDetail chatId={id} />
|
||||
</Dashboard>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user