import React from "react" import { CheckCircleSolid } from "@medusajs/icons" import { HeroPricingFields } from "../../../utils/types" import { H3, Button } from "docs-ui" import clsx from "clsx" import slugify from "slugify" import Link from "next/link" interface HeroPricingProps { data: HeroPricingFields } const HeroPricing: React.FC = ({ data }) => { if (!data?.options) { return null } return (
{/* Header Row */}
{/* Main content area */}
{data.options.map((option, index) => (

{option.title}

{option.subtitle}

))}
{/* Features and Buttons Row */}
{/* Description row - all descriptions at same height */} {data.options.map((option, index) => (
{option.description && (

{option.description}

)}
))} {/* Features row - all features sections at same level */} {data.options.map((option, index) => (
{option.pre_features && (
{option.pre_features}
)} {option.features.map((feature, featureIndex) => (
{feature}
))}
))} {/* Buttons row - all buttons at same level */} {data.options.map((option, index) => (
{option.buttons.map((button) => ( ))}
))}
) } export default HeroPricing