import Title from "@/components/Title"; import styles from "./styles.module.css"; import ReservedTimer from "./components/ReservedTimer"; import MainButton from "@/components/MainButton"; import Modal from "@/components/Modal"; import PaymentModal from "../../TrialPayment/components/PaymentModal"; import { useEffect, useState } from "react"; import { useApi } from "@/api"; import { useTranslation } from "react-i18next"; import { usePaywall } from "@/hooks/paywall/usePaywall"; import { EPlacementKeys, IPaywallProduct } from "@/api/resources/Paywall"; function MarketingTrialPayment() { const { i18n } = useTranslation(); const locale = i18n.language; const api = useApi(); const [isOpenPaymentModal, setIsOpenPaymentModal] = useState(false); const [freeTrialProduct, setFreeTrialProduct] = useState< IPaywallProduct | undefined >(); const { products } = usePaywall({ placementKey: EPlacementKeys["aura.placement.main"], }); // get free trial plan useEffect(() => { (async () => { const _freeProduct = products.find((product) => product.isFreeTrial); setFreeTrialProduct(_freeProduct); })(); }, [api, locale, products]); const openStripeModal = () => { setIsOpenPaymentModal(true); }; const handleCloseModal = () => { setIsOpenPaymentModal(false); }; return ( <>
Special Offer
Start your 7-day trial

No pressure. Cancel anytime

Total today:

$0

Code applied!

Your cost per 2 weeks after trial

$29 $19

Save $10 every period

You will be charged only $0 for your 7-day trial.{" "} Subscription renews automatically until cancelled. You{" "} can cancel at any time before the end of the trial.

Credit card

Get access

By continuing you agree that if you don't cancel prior to the end of the 3-days trial, you will automatically be charged $19 every 2 weeks until you cancel in settings. Learn more about cancellation and refund policy in Subscription terms

); } export default MarketingTrialPayment;