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

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>
    );
}
