import type { Metadata } from 'next'
import { getTranslations } from 'next-intl/server'

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
  const { locale } = await params
  const t = await getTranslations({ locale, namespace: 'Legal' })
  return { title: t('contact.title') }
}

export default async function ContactUsPage() {
  const t = await getTranslations('Legal')
  return (
    <div className="main-page">
      <div className="middle-content">
        <div className="body-content">
          <div className="title-content">
            <h1>{t('contact.title')}</h1>
          </div>
          <div className="box-content">
            <div className="body-box-content">
              <p>{t('contact.p1')}</p>
              <p>{t('contact.p2')}</p>
              <p className="second-brown">consultas@nightspire.gg</p>
              <br />
              <p>{t('contact.p3')}</p>
              <p>{t('contact.p4')}</p>
              <p>{t('contact.p5')}</p>
              <br />
              <p>{t('contact.p6')}</p>
              <p>{t('contact.p7')}</p>
              <br />
              <p>{t('contact.p8')}</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
