import Link from 'next/link' import { Button } from 'ui' import ProductIcon from '../ProductIcon' import { BookOpen } from 'lucide-react' type subheader = string interface Types { h1: string | React.ReactNode subheader: (string | React.ReactNode)[] icon?: string title?: string image?: React.ReactNode footer?: React.ReactNode documentation_url?: string callout?: React.ReactNode } const ProductHeader = (props: Types) => (
{props.callout && props.callout}
{props.icon || props.title ? (
{props.icon && } {props.title && ( {props.title} )}
) : null}

{props.h1}

{props.subheader && props.subheader.map((subheader, i) => { return (

{subheader}

) })}
{props.documentation_url && ( )}
{props.footer &&
{props.footer}
}
{props.image && (
{props.image}
)}
) export default ProductHeader