/* eslint-disable no-restricted-imports */ import { EmbedContainer } from '@automattic/components'; import { useState, useCallback } from '@wordpress/element'; import { useContentFilter } from '../hooks'; import { ArticleContentProps } from '../types'; import HelpCenterFeedbackForm from './help-center-feedback-form'; import { SupportArticleHeader } from './help-center-support-article-header'; import Placeholders from './placeholder-lines'; const ArticleContent = ( { isLoading = false, post }: ArticleContentProps ) => { const [ theRef, setTheRef ] = useState< HTMLDivElement | null >( null ); const articleContentRef = useCallback( ( node: HTMLDivElement | null ) => setTheRef( node ), [] ); useContentFilter( theRef ); return (
{ isLoading || ! post ? ( ) : ( <>
) }
); }; export default ArticleContent;