import * as React from 'react' import Image from 'next/image' import ReactPlayer from 'react-player' import VisuallyHidden from '@reach/visually-hidden' import IoDialog from 'components/io-dialog' import PlayIcon from './play-icon' import s from './style.module.css' export interface IoHomeVideoCalloutProps { youtubeId: string thumbnail: string heading: string description: string person: { avatar: string name: string description: string } } export default function IoVideoCallout({ youtubeId, thumbnail, heading, description, person, }: IoHomeVideoCalloutProps): React.ReactElement { const [showDialog, setShowDialog] = React.useState(false) const showVideo = () => setShowDialog(true) const hideVideo = () => setShowDialog(false) return ( <>

{heading}

{description}

{person && (
{person.avatar ? (
{`${person.name}
) : null}

{person.name}

{person.description}

)}

{heading}

) }