MCPcopy Create free account
hub / github.com/code100x/daily-code / Profile

Function Profile

apps/web/app/profile/page.tsx:8–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import UserDetailForm from "../../components/UserDetailForm";
7
8export default async function Profile() {
9 const session = await getServerSession(authOptions);
10
11 if (!session || !session?.user) {
12 redirect("/auth");
13 }
14 return (
15 <div>
16 <header className="border-b-2 p-3">
17 <div className="px-2">
18 <h1 className="text-2xl flex items-center gap-2 font-semibold w-fit">
19 <UserRound color="#3b82f6" />
20 <span>Profile</span>
21 </h1>
22 <span className="text-xs text-gray-400">This page shows you your profile and account details</span>
23 </div>
24 </header>
25
26 <main className="p-3">
27 <UserDetailForm user={session?.user} />
28 </main>
29 </div>
30 );
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected