'use client'
import { useRouter, useSearchParams } from 'next/navigation'
import { getCookie, setCookie } from '@/util/cookie'
import { Suspense, useEffect, useState } from 'react'
import { HomeButton } from '@/app/components/HomeButton'
import { DiscordButton } from '@/app/components/DiscordButton'
import axios from 'axios'
import Link from 'next/link'
import { BackButton } from '@/app/components/BackButton'
function AccountLoginForm ({ redirect }: { redirect: string | null }) {
const [loading, setLoading] = useState
{loading
? 'Loading...'
: `Lncvrt Games ${alreadyLoggedIn ? 'Refresh ' : ''}Login`}
Note: You login here with your Lncvrt Games Account. If you played
Berry Dash version 1.8.2 or older, then you login with that account
here. It has been migrated automatically.