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("title")}

{t("desc")}

setOneMonth(0)} >

{t("oneMounth.users1")}

setOneMonth(1)} >

{t("oneMounth.users2")}{" "}

setOneMonth(2)} >

{t("oneMounth.users3")}{" "}

{t("oneMounth.title")}{" "}

{oneMonth == 0 ? t("oneMounth.pricing1") : oneMonth == 1 ? t("oneMounth.pricing2") : oneMonth == 2 ? t("oneMounth.pricing3") : t("oneMounth.pricing1")}

{t("oneMounth.desc")}{" "}

setThreeMonth(0)} >

{t("threeMounth.users1")}

setThreeMonth(1)} >

{t("threeMounth.users2")}

setThreeMonth(2)} >

{t("threeMounth.users3")}

{t("threeMounth.title")}{" "}

{threeMonth == 0 ? t("threeMounth.pricing1") : threeMonth == 1 ? t("threeMounth.pricing2") : threeMonth == 2 ? t("threeMounth.pricing3") : t("threeMounth.pricing1")}

{t("threeMounth.desc")}{" "}

setOneYear(0)} >

{t("sixMounth.users1")}{" "}

setOneYear(1)} >

{t("sixMounth.users2")}{" "}

setOneYear(2)} >

{t("sixMounth.users3")}{" "}

{t("sixMounth.title")}{" "}

{oneYear == 0 ? t("sixMounth.pricing1") : oneYear == 1 ? t("sixMounth.pricing2") : oneYear == 2 ? t("sixMounth.pricing3") : t("sixMounth.pricing1")}

{t("sixMounth.desc")}{" "}

); }; export default PricingHero;