update
This commit is contained in:
@@ -2,7 +2,11 @@ import { Suspense } from "react";
|
||||
import UserProfileContent from "./content";
|
||||
|
||||
// page.tsx (Server Component)
|
||||
export default async function UserProfilePage({ params }: { params: { id: string } }) {
|
||||
export default async function UserProfilePage({
|
||||
params
|
||||
}: {
|
||||
params: { id: string };
|
||||
}) {
|
||||
return (
|
||||
<Suspense fallback={<div className="p-4">Loading profile…</div>}>
|
||||
<UserProfileContent userId={(await params).id} />
|
||||
|
||||
Reference in New Issue
Block a user