import ProductIcon from 'components/ProductIcon' import { Fragment } from 'react' import { IconPricingIncludedCheck, IconPricingInfo, IconPricingMinus } from './PricingIcons' import { HelpCircle } from 'lucide-react' export const PricingTableRowDesktop = (props: any) => { const category = props.category return ( <>
{props.icon && }

{category.title}

{category.features.map((feat: any, i: number) => { return ( {feat.title} {feat.tooltips?.main && ( )} {Object.entries(feat.plans).map((entry: any, i) => { const planName = entry[0] const planValue = entry[1] return ( {typeof planValue === 'boolean' && planValue === true ? ( ) : typeof planValue === 'boolean' && planValue === false ? (
) : (
{feat.tooltips?.[planName] && ( )} {typeof planValue === 'string' ? planValue : planValue[0]} {typeof planValue !== 'string' && ( {planValue[1]} )}
)} ) })} {i === category.features.length - 1 && ( )}
) })} ) } export const PricingTableRowMobile = (props: any) => { const category = props.category const plan = props.plan return ( {category.features.map((feat: any, i: number) => { return ( ) })}
{category.icon ? : null} {category.title}
Feature Included

{feat.title}

{typeof feat.plans[plan] === 'boolean' && feat.plans[plan] === true ? ( ) : typeof feat.plans[plan] === 'boolean' && feat.plans[plan] === false ? ( ) : ( {typeof feat.plans[plan] === 'string' ? feat.plans[plan] : feat.plans[plan][0]} {typeof feat.plans[plan] !== 'string' && ( {feat.plans[plan][1]} )} )}
) }