import { ReactNode } from 'react' import Button from '@hashicorp/react-button' import s from './style.module.css' interface InfoSection { heading: string content: ReactNode } interface Cta { text: string url: string } export interface FeatureProps { number: number title: string subtitle: string infoSections: InfoSection[] cta: Cta image: string } export default function Feature({ number, title, subtitle, infoSections, cta, image, }: FeatureProps) { return (
{title}
{number}

{title}

{subtitle}

{infoSections.map(({ heading, content }) => (

{heading}

{content}
))}
) }