import * as React from 'react' import { Products } from '@hashicorp/platform-product-meta' import Button from '@hashicorp/react-button' import classNames from 'classnames' import s from './style.module.css' interface IoHomeHeroProps { pattern: string brand: Products | 'neutral' heading: string description: string ctas: Array<{ title: string link: string }> cards: Array } export default function IoHomeHero({ pattern, brand, heading, description, ctas, cards, }: IoHomeHeroProps) { const [loaded, setLoaded] = React.useState(false) React.useEffect(() => { setTimeout(() => { setLoaded(true) }, 250) }, []) return (

{heading}

{description}

{ctas && (
{ctas.map((cta, index) => { return (
)}
{cards && (
{cards.map((card, index) => { return ( ) })}
)}
) } interface IoHomeHeroCardProps { index?: number heading: string description: string cta: { title: string link: string brand?: 'neutral' | Products } subText: string } function IoHomeHeroCard({ index, heading, description, cta, subText, }: IoHomeHeroCardProps): React.ReactElement { return (

{heading}

{description}

) }