24 lines
557 B
TypeScript
24 lines
557 B
TypeScript
import React from "react";
|
|
import { Metadata } from "next";
|
|
import ChatDetail from "@/components/dashboard/ChatDetail";
|
|
import Dashboard from "@/components/dashboard/dashboard";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Chat Conversation",
|
|
description: "View and respond to customer messages",
|
|
};
|
|
|
|
interface PageProps {
|
|
params: Promise<{
|
|
id: string;
|
|
}>;
|
|
}
|
|
|
|
export default async function ChatDetailPage({ params }: PageProps) {
|
|
const { id } = await params;
|
|
return (
|
|
<Dashboard>
|
|
<ChatDetail chatId={id} />
|
|
</Dashboard>
|
|
);
|
|
}
|