import * as React from 'react' import Image from 'next/image' import classNames from 'classnames' import { Products } from '@hashicorp/platform-product-meta' import Button from '@hashicorp/react-button' import IoVideoCallout, { IoHomeVideoCalloutProps, } from 'components/io-video-callout' import IoHomeFeature, { IoHomeFeatureProps } from 'components/io-home-feature' import s from './style.module.css' interface IoHomeIntroProps { isInternalLink: (link: string) => boolean brand: Products heading: string description: string features?: Array offerings?: { image: { src: string width: number height: number alt: string } list: Array<{ heading: string description: string }> cta?: { title: string link: string } } video?: IoHomeVideoCalloutProps } export default function IoHomeIntro({ isInternalLink, brand, heading, description, features, offerings, video, }: IoHomeIntroProps) { return (

{heading}

{description}

{features ? ( ) : null} {offerings ? (
{offerings.image ? (
{offerings.image.alt}
) : null}
    {offerings.list.map((offering, index) => { return ( // Index is stable // eslint-disable-next-line react/no-array-index-key
  • {offering.heading}

    {offering.description}

  • ) })}
{offerings.cta ? (
) : null}
) : null} {video ? (
) : null}
) }