Update page.tsx
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user