import LoginForm from "@/components/LoginForm/LoginForm";
import Logo from "@/components/Logo/Logo";
import PageItem from "@/components/PageBlock/PageItem";
import PageContainer from "@/components/PageContainer/PageContainer";

interface LoginPageProps {
    searchParams: Promise<{ login_challenge?: string }>;
}

export default async function LoginPage({ searchParams }: LoginPageProps) {
    const params = await searchParams;

    return (
        <PageContainer center>
            <PageItem fullScreenMobile>
                <Logo title={"Вход"} />
                <LoginForm loginChallenge={params.login_challenge} />
            </PageItem>
        </PageContainer>
    );
}
