ExposedGays: map, shop, auth, Supabase schema
This commit is contained in:
24
src/app/chat/page.tsx
Normal file
24
src/app/chat/page.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client";
|
||||
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import { Suspense } from "react";
|
||||
import { ChatPanel } from "@/components/ChatPanel";
|
||||
|
||||
function ChatContent() {
|
||||
const searchParams = useSearchParams();
|
||||
const userId = searchParams.get("user");
|
||||
|
||||
return (
|
||||
<div className="h-[calc(100vh-3.5rem)] md:h-[calc(100vh-3.5rem)]">
|
||||
<ChatPanel dmUserId={userId} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function ChatPage() {
|
||||
return (
|
||||
<Suspense fallback={<div className="p-4 text-muted-foreground">Loading chat...</div>}>
|
||||
<ChatContent />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user