import React from "react"; import { Metadata } from "next"; import dynamic from "next/dynamic"; import { Skeleton } from "@/components/ui/skeleton"; 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; const ChatDetail = dynamic(() => import("@/components/dashboard/ChatDetail"), { loading: () => (
) }); return ( ); }