import React, { PropsWithChildren } from "react" import Actionables, { ActionType } from "../../molecules/actionables" type BannerCardProps = PropsWithChildren<{ actions?: ActionType[] title: string thumbnail?: string | null }> & React.RefAttributes type BannerCardDescriptionProps = PropsWithChildren<{ cta?: { label: string onClick: (e: React.MouseEvent) => void } }> const BannerCard: React.FC & { Description: React.FC Footer: React.FC } = ({ title, thumbnail, actions, children }) => { return (
{thumbnail && (
Thumbnail
)}

{title}

{children}
) } const Description: React.FC = ({ cta, children, }) => { return (

{children}

{cta && ( )}
) } const Footer = ({ children }: PropsWithChildren) => { return
{children}
} BannerCard.Description = Description BannerCard.Footer = Footer export default BannerCard