import * as React from 'react'; interface Props { prices: Array; currentPrice: string; setCurrentPrice: (priceId: string) => void; setChosenPrice: (priceId: string) => void; stripeMonthlyLookupKey: string; stripeYearlyLookupKey: string; } const PricingTable = ({ prices, currentPrice, setCurrentPrice, setChosenPrice, stripeMonthlyLookupKey, stripeYearlyLookupKey, }: Props) => { const monthlyPlanUnitAmount = prices.find(p => p.lookup_key === stripeMonthlyLookupKey).unit_amount; const yearlyPlanUnitAmount = prices.find(p => p.lookup_key === stripeYearlyLookupKey).unit_amount; const yearlyPlanDiscount = 1 - yearlyPlanUnitAmount / (monthlyPlanUnitAmount*12) return (

Choose your plan

{ prices && prices.filter(price => price.id === currentPrice).map((price) => (

{ price.lookup_key === stripeMonthlyLookupKey ? 'Monthly subscription' : 'Yearly subscription' }

{price.unit_amount / 100.0}   {price.currency}  /  {price.recurring.interval}

{ price.lookup_key === stripeYearlyLookupKey &&

( {price.unit_amount / 100.0 / 12}   {price.currency}  /  month )

}

For most small-medium organizations.
Bigger organizations can contact us for a custom plan.

  • All features
  • Unlimited feedback
  • Unlimited boards
)) }
); }; export default PricingTable;