nomadweb/frontend/src/app/members/[id]/page.tsx
eric fe4f0f5983 Fix member profiles, chat peer header, and like-back CTAs.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 06:43:48 -05:00

19 lines
653 B
TypeScript

import { Suspense } from "react";
import { notFound } from "next/navigation";
import { api } from "@/lib/api";
import SiteShell from "@/components/SiteShell";
import MemberProfileClient from "@/components/MemberProfileClient";
export default async function MemberPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
const profile = await api.getMemberProfile(id).catch(() => null);
if (!profile) notFound();
return (
<SiteShell showFooter>
<Suspense fallback={<div className="container dest-empty">…</div>}>
<MemberProfileClient profile={profile} />
</Suspense>
</SiteShell>
);
}