Merge pull request #986 from JoeMakuta/chore/chat-page-client-to-server

fix: convert public chat page to server component
This commit is contained in:
Rohan Verma 2026-03-26 12:41:10 -07:00 committed by GitHub
commit 959999f380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,11 +1,11 @@
"use client";
import { useParams } from "next/navigation";
import { PublicChatView } from "@/components/public-chat/public-chat-view";
export default function PublicChatPage() {
const params = useParams();
const token = params.token as string;
export default async function PublicChatPage({
params,
}: {
params: Promise<{ token: string }>;
}) {
const { token } = await params;
return <PublicChatView shareToken={token} />;
return <PublicChatView shareToken={token} />;
}