import { headers } from 'next/headers'; import { getThemeForPath } from '@/lib/theme'; export default async function LoginPage({ searchParams }: { searchParams: Promise<{ error?: string }> }) { const sp = await searchParams; const h = await headers(); const theme = await getThemeForPath(h.get('x-pathname') ?? '/login'); const Login = theme.slots.LoginForm; return ; }