import { createClient } from "@/lib/supabase-server" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { UserForm } from "@/components/dashboard/user-form" import { notFound } from "next/navigation" import { getProfile } from "@/lib/data" export default async function ProfilePage() { const supabase = createClient() const { data: { user } } = await supabase.auth.getUser() if (!user) { // Should be protected by middleware but just in case return