import { getServerT, getServerLocale } from "@/lib/i18n/server";
import Link from "next/link";

interface FinalCtaProps {
  locale: string;
}

export async function FinalCta({ locale }: FinalCtaProps) {
  const t = await getServerT(locale, "subscribe");

  return (
    <section className="final-cta">
      <div className="wrap final-cta-row">
        <div>
          <h2>
            {t("cta_heading_1")}
            <em>{t("cta_heading_em")}</em>
            {t("cta_heading_2")}
          </h2>
          <p>{t("cta_body")}</p>
        </div>
        <div className="actions">
          <Link href="/signup" className="btn-w">
            {t("cta_trial_btn")}
            <svg viewBox="0 0 24 24">
              <path d="M5 12h14M13 6l6 6-6 6" />
            </svg>
          </Link>
          <Link href="/company/contact" className="btn-o">
            {t("cta_contact_btn")}
          </Link>
        </div>
      </div>
    </section>
  );
}
