()
| 6 | import UserDetailForm from "../../components/UserDetailForm"; |
| 7 | |
| 8 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected