// import React from 'react'
// import { redirect } from 'next/navigation'
// const page = ({ params: { locale } }: { params: { locale: string } }) => {
//   redirect(`/${locale}/auth/login`)
//   return null
// }

// export default page

import { Link } from "@/i18n/routing";
import LoginForm from "@/components/partials/auth/login-form";
import Image from "next/image";
import Social from "@/components/partials/auth/social";
import Copyright from "@/components/partials/auth/copyright";
import Logo from "@/components/partials/auth/logo";
import { useTranslations } from "next-intl";

const Login = ({ params: { locale } }: { params: { locale: string } }) => {
  const t = useTranslations("LandingPage");

  return (
    <>
      <div className="flex w-full items-center overflow-hidden min-h-dvh h-dvh basis-full">
        <div className="overflow-y-auto flex flex-wrap w-full h-dvh">
          <div className="lg:block hidden flex-1 overflow-hidden text-[40px] leading-[48px] text-default-600 relative z-[1] bg-default-50">
            <div className="max-w-[520px] pt-16 ps-20 ">
              <Link href="/" className="mb-6 inline-block">
                <Image
                  src="/assets/mediahub-logo.png"
                  alt=""
                  width={250}
                  height={250}
                  className="mb-10 w-full h-full"
                />
              </Link>
            </div>
            <div className="absolute left-0 2xl:bottom-[-160px] bottom-[-130px] h-full w-full z-[-1]">
              <Image
                src="/assets/vector-login.svg"
                alt=""
                width={300}
                height={300}
                className="mb-10 w-full h-full"
              />
            </div>
          </div>
          <div className="flex-1 relative">
            <div className=" h-full flex flex-col  dark:bg-default-100 bg-white">
              <div className="max-w-[524px] md:px-[42px] md:py-[44px] p-7  mx-auto w-full text-2xl text-default-900  mb-3 h-full flex flex-col justify-center">
                <LoginForm />
              </div>
            </div>
          </div>
        </div>
      </div>
    </>
  );
};

export default Login;
