diff --git a/components/shared/prices.tsx b/components/shared/prices.tsx index 987ecb6..3b50ae3 100644 --- a/components/shared/prices.tsx +++ b/components/shared/prices.tsx @@ -3,12 +3,14 @@ import React from 'react' import { TiTick } from "react-icons/ti"; import { Button } from '../ui/button'; -import {Plans } from "@/types/plans/model" +import { Plans } from "@/types/plans/model" -interface Props { - data:Plans[] +interface Props { + data: Plans[] } -const Prices:React.FC = ({data}) => { +const Prices: React.FC = ({ data }) => { + + return (
@@ -21,112 +23,46 @@ const Prices:React.FC = ({data}) => {
-
-
-

- Free -

-

No credit card required

- - $0/month - -
-
-

Popular features

-
    -
  • Email marketing
  • -
  • Forms
  • -
  • Live chat
  • -
  • Ad management
  • -
  • Mobile Optimization
  • -
-
- -
-
+ { + data?.map((item, index: number) => { + return
+
+

+ {item.plan} +

+

{ + item.plan === "Free" ? "No credit card required" : + "Credit card required" + } +

+ + ${item.price}/month + +
+
-
-
-

- Starter -

-

Starts at

- - $20/month - +

Popular features

+
    + { + item.features.map((feature, index: number) => { + return
  • {feature}
  • + }) + } +
+
+
+
-
-
-

Popular features

-
    -
  • Everything in Free
  • -
  • Multiple currencies
  • -
  • Email health insights
  • -
  • Calls-to-action
  • -
  • No Crm branding
  • -
+ +
- -
-
-
-
-

- Professional -

-

Starts at

- - $890/month - + }) + } -
-
-

Popular features

-
    -
  • Everything in Starter
  • -
  • Campaign management
  • -
  • SEO
  • -
  • Predictive lead scoring
  • -
  • Custom reporting
  • -
-
- -
-
- -
-
-

- Enterprise -

-

Starts at

- - $3,600/month - - -
-
-

Popular features

-
    -
  • Everything in Professional
  • -
  • Adaptive testing
  • -
  • Multuple revenue attribution
  • -
  • Customer journey analytics
  • -
-
- -
-

It’s already easy to use. But we’re still here for you.