import { SocialLinksForm } from "@/components/dashboard/social-links-form"; import { db } from "@/lib/db"; import { requireCurrentUser } from "@/lib/session"; export default async function DashboardSocialLinksPage() { const user = await requireCurrentUser(); const profile = await db.profile.findUnique({ where: { userId: user.id }, include: { socialLinks: { select: { id: true, label: true, url: true, sortOrder: true, isVisible: true }, orderBy: [{ sortOrder: "asc" }, { createdAt: "asc" }] } } }); if (!profile) { return

Profile not found.

; } return (

Social Links

Optional links to contact points and social profiles. Keep this short and relevant.

); }