import FormLogin from '@/components/forms/FormLogin'
import { AuthLayout } from '@/components/layouts/AuthLayout'
import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'

export default function Login() {
  const { t } = useTranslation()

  return (
    <AuthLayout>
      <FormLogin />
    </AuthLayout>
  )
}

export const getStaticProps = async ({ locale }: { locale: string }) => ({
  props: {
    ...(await serverSideTranslations(locale, ['common']))
  }
})
