import Image from 'next/image' import Link from 'next/link' import { Button, cn } from 'ui' import styles from '~/styles/animations.module.css' import AnnouncementBadge from '../Announcement/Badge' import { PlayCircle } from 'lucide-react' interface Types { h1: string | React.ReactNode subheader: string | React.ReactNode icon?: string className?: string title?: string image?: string | React.ReactNode footer?: React.ReactNode announcement?: { url: string announcement: string badge?: string target?: '_self' | '_blank' | string } cta?: { label?: string link: string } secondaryCta?: { label?: string link: string } video?: string } const ProductModulesHeader = (props: Types) => (
{/* {props.image && (props.image && typeof props.image === 'string' ? (
) : (
{props.image}
))} */}
{props.icon || props.title ? (
{/* {props.icon && } */} {props.title && ( {props.title} )}
) : null}
{props.announcement && }

{props.h1}

{props.subheader}

{props.cta && ( )} {props.video && ( )} {props.secondaryCta && ( )}
{props.footer &&
{props.footer}
}
) export default ProductModulesHeader