import React, { forwardRef } from 'react' import type { ReactNode, HTMLAttributes, DetailedHTMLProps } from 'react' export interface NewsletterHeaderProps extends DetailedHTMLProps, HTMLHeadElement> { /** * Icon for the section. */ icon?: ReactNode /** * Title for the section. */ title: string /** * A description for the section. */ description?: string /** * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest). */ testId?: string } const NewsletterHeader = forwardRef( function NewsletterHeader( { icon, title, description, testId = 'fs-newsletter-header', ...otherProps }, ref ) { return (

{icon} {title}

{description && ( {description} )}
) } ) export default NewsletterHeader