import React, { Fragment } from "react"; import { pricingSections } from "../../data/pricingSections"; import { pricingTiers } from "../../data/pricingTiers"; import { Link } from "react-router-dom"; export default function PricingComparisonTable({ loggedIn }) { return (
{pricingTiers.map((tier) => (

{tier.name}

${tier.priceMonthly} /mo

{tier.description}

window.scrollTo(0, 0)} className="block w-full bg-indigo-600 border border-transparent rounded-md shadow py-2 text-sm font-semibold text-white text-center hover:to-pink-600"> Buy {tier.name}
{pricingSections.map((section) => ( {section.features.map((feature) => ( ))}
{section.name}
Feature Included
{feature.name} {typeof feature.tiers[tier.name] === "string" ? ( {feature.tiers[tier.name]} ) : ( {feature.tiers[tier.name] === true ? ( ) : ( )} {feature.tiers[tier.name] === true ? "Yes" : "No"} )}
))}
window.scrollTo(0, 0)} className="block w-full bg-indigo-600 border border-transparent rounded-md shadow py-2 text-sm font-semibold text-white text-center hover:to-pink-600"> Buy {tier.name}
))}
{pricingTiers.map((tier) => ( ))} {pricingTiers.map((tier) => ( ))} {pricingSections.map((section) => ( {section.features.map((feature) => ( {pricingTiers.map((tier) => ( ))} ))} ))} {pricingTiers.map((tier) => ( ))}
Pricing plan comparison
Feature by Plans {tier.name}
Pricing

${tier.priceMonthly} /mo

{tier.description}

window.scrollTo(0, 0)} className="block w-full bg-indigo-600 border border-transparent rounded-md shadow py-2 text-sm font-semibold text-white text-center hover:to-pink-600"> Buy {tier.name}
{section.name}
{feature.name} {typeof feature.tiers[tier.name] === "string" ? ( {feature.tiers[tier.name]} ) : ( <> {feature.tiers[tier.name] === true ? ( ) : ( )} {feature.tiers[tier.name] === true ? "Included" : "Not included"}{" "} in {tier.name} )}
Choose your plan window.scrollTo(0, 0)} className="block w-full bg-indigo-600 border border-transparent rounded-md shadow py-2 text-sm font-semibold text-white text-center hover:to-pink-600"> Buy {tier.name}
); }