import React , { FC } from 'react' ; type MessageGenericPreviewTitleProps = { externalUrl ? : string ; } ; export const MessageGenericPreviewTitle = ( { externalUrl , ... props } ) => externalUrl ? ( < a className = 'rcx-message-generic-preview__title' href = { externalUrl } target = '_blank' { ... props } />) : (<span className='rcx-message-generic-preview__title' {...props}/ > ) ;