import { getI18n } from "@/lib/i18n"; import { Header, Footer } from "@/components/Shell"; import { Pairing } from "@/components/Pairing"; import { SignIn } from "@/components/SignIn"; import { user } from "@/lib/supabase"; export default async function Pair({ searchParams, }: { searchParams: Promise<{ code?: string }>; }) { const { t } = await getI18n(); const { code } = await searchParams; const account = await user(); return ( <> {!account ? ( <> {t("Sign in first, then reopen the pairing link from Minecraft.")} > ) : code && /^[A-F0-9]{8}$/.test(code) ? ( ) : ( {t("Open the pairing link shown by your Fabric mod.")} )} > ); }
{t("Sign in first, then reopen the pairing link from Minecraft.")}
{t("Open the pairing link shown by your Fabric mod.")}