import { ExternalLink } from '@automattic/components'; import { decodeEntities } from '@wordpress/html-entities'; import { __ } from '@wordpress/i18n'; import type { PostObject } from '../types'; export const SupportArticleHeader = ( { post, isLoading, }: { post: PostObject; isLoading: boolean; } ) => isLoading || ! post ? (

Post loading…

) : (
{ __( 'Open support page', __i18n_text_domain__ ) }

{ decodeEntities( post.title ) }

);