import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { Button } from "@/components/ui/button"; import Main from "@/components/main"; export default async function OAuthErrorPage({ searchParams, }: { searchParams: Promise<{ reason?: string }>; }) { const { reason = "auth_failed" } = await searchParams; const t = await getTranslations("OAuth"); const tc = await getTranslations("Common"); const message = t(reason as never); return (

{t("title")}

{message}

); }