import Title from "@/components/Title"; import styles from "./styles.module.css"; import { useSelector } from "react-redux"; import { selectors } from "@/store"; import { IPaywallProduct } from "@/api/resources/Paywall"; const getPrice = (product: IPaywallProduct | null) => { if (!product) { return 0; } return (product.trialPrice === 100 ? 99 : product.trialPrice || 0) / 100; }; function PaymentDiscountTable() { const activeProduct = useSelector(selectors.selectActiveProduct); return (
You get a secret discount!

No pressure. Cancel anytime.

Present

Secret discount applied!

-30% -50%

Your cost per 14 days after trial:

$19 $9

You save $30


Total today:

{activeProduct && ${getPrice(activeProduct)}}
); } export default PaymentDiscountTable;