// MUI Imports import Chip from '@mui/material/Chip' import Typography from '@mui/material/Typography' import Button from '@mui/material/Button' import CardContent from '@mui/material/CardContent' // Third-party Imports import classnames from 'classnames' // Type Imports import type { PricingPlanType } from '@/types/pages/pricingTypes' type Props = { pricingPlan: 'monthly' | 'annually' data?: PricingPlanType } const PlanDetails = ({ data, pricingPlan }: Props) => { return ( {data?.popularPlan ? ( ) : null}
{`${data?.title.toLowerCase().replace('
{data?.title} {data?.subtitle}
$ {pricingPlan === 'monthly' ? data?.monthlyPrice : data?.yearlyPlan.monthly} /month
{pricingPlan !== 'monthly' && data?.monthlyPrice !== 0 ? ( {`USD ${data?.yearlyPlan.annually}/year`} ) : null}
{data?.planBenefits.map((item: string, index: number) => (
{item}
))}
) } export default PlanDetails