import { useTranslations } from "next-intl"; import React, { useState } from "react"; import { Link } from "src/i18n/routing"; const PricingHero = () => { const [oneMonth, setOneMonth] = useState(0); const [threeMonth, setThreeMonth] = useState(0); const [oneYear, setOneYear] = useState(0); const t = useTranslations("pricing"); return (
{t("desc")}
{t("oneMounth.users1")}
{t("oneMounth.users2")}{" "}
{t("oneMounth.users3")}{" "}
{oneMonth == 0 ? t("oneMounth.pricing1") : oneMonth == 1 ? t("oneMounth.pricing2") : oneMonth == 2 ? t("oneMounth.pricing3") : t("oneMounth.pricing1")}
{t("oneMounth.desc")}{" "}
{t("threeMounth.users1")}
{t("threeMounth.users2")}
{t("threeMounth.users3")}
{threeMonth == 0 ? t("threeMounth.pricing1") : threeMonth == 1 ? t("threeMounth.pricing2") : threeMonth == 2 ? t("threeMounth.pricing3") : t("threeMounth.pricing1")}
{t("threeMounth.desc")}{" "}
{t("sixMounth.users1")}{" "}
{t("sixMounth.users2")}{" "}
{t("sixMounth.users3")}{" "}
{oneYear == 0 ? t("sixMounth.pricing1") : oneYear == 1 ? t("sixMounth.pricing2") : oneYear == 2 ? t("sixMounth.pricing3") : t("sixMounth.pricing1")}
{t("sixMounth.desc")}{" "}