import type { ReactNode } from 'react'; import React from 'react'; import type { RichText } from '../../types'; import { H2 } from '../Typography/H2/H2'; import { Paragraph } from '../Typography/Paragraph/Paragraph'; export interface CTABannerProps { /** * Action text of the banner button. */ action?: ReactNode; /** * Content of the banner. */ description?: RichText; /** * Title of the banner. */ title?: string; } export const CTABanner: React.FC = ({ action, description, title, ...rest }) => { return (
{title && (

{title}

)} {typeof description === 'string' ? {description} : description}
{action}
); };