import * as React from "react"; import { Button } from "@relume_io/relume-ui"; import type { ButtonProps } from "@relume_io/relume-ui"; import { BiCheck } from "react-icons/bi"; type PricingPlan = { planName: string; monthlyPrice: string; yearlyPrice: string; features: string[]; button: ButtonProps; }; type Props = { tagline: string; heading: string; description: string; pricingPlans: PricingPlan[]; }; export type Pricing18Props = React.ComponentPropsWithoutRef<"section"> & Partial; export const Pricing18 = (props: Pricing18Props) => { const { tagline, heading, description, pricingPlans } = { ...Pricing18Defaults, ...props, }; return (

{tagline}

{heading}

{description}

{pricingPlans.map((plan, index) => (
{plan.planName}

{plan.monthlyPrice} /mo

or {plan.yearlyPrice} yearly

{plan.features.map((feature, index) => (

{feature}

))}
))}
); }; export const Pricing18Defaults: Props = { tagline: "Tagline", heading: "Pricing plan", description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", pricingPlans: [ { planName: "Basic plan", monthlyPrice: "$19", yearlyPrice: "$199", features: ["Feature text goes here", "Feature text goes here", "Feature text goes here"], button: { title: "Get started" }, }, { planName: "Business plan", monthlyPrice: "$29", yearlyPrice: "$299", features: ["Feature text goes here", "Feature text goes here", "Feature text goes here", "Feature text goes here"], button: { title: "Get started" }, }, { planName: "Enterprise plan", monthlyPrice: "$49", yearlyPrice: "$499", features: ["Feature text goes here", "Feature text goes here", "Feature text goes here", "Feature text goes here", "Feature text goes here"], button: { title: "Get started" }, }, ], };