/** * WordPress dependencies */ import { _x, sprintf } from '@safe-wordpress/i18n'; /** * External dependencies */ import { ContextualHelp, LoadingModal } from '@nelio-content/components'; import { useIsSubscribed } from '@nelio-content/data'; /** * Internal dependencies */ import './style.scss'; import { walkthrough } from '../../../walkthrough'; import { useIsLoadingRelatedPost, useIsNewMessage, useIsSaving, useRelatedPostStatus, } from '../../../hooks'; import { Actions } from '../../actions'; import { BufferSettings } from '../../buffer-settings'; import { DateSelector } from '../../date-selector'; import { ErrorDetector } from '../../error-detector'; import { MediumTags } from '../../medium-tags'; import { MessageEditor } from '../../message-editor'; import { MessagePreview } from '../../message-preview'; import { PlurkQualifier } from '../../plurk-qualifier'; import { ProfileSelector } from '../../profile-selector'; import { QuickActions } from '../../quick-actions'; import { RecurrenceSummary } from '../../recurrence-summary'; import { RecurrenceUpdater } from '../../recurrence-updater'; import { TikTokSettings } from '../../tiktok-settings'; import { TimeSelector } from '../../time-selector'; import { WebhookSettings } from '../../webhook-settings'; type EditorDialogProps = { readonly callback?: () => void; }; export const EditorDialog = ( { callback, }: EditorDialogProps ): JSX.Element => { const isLoadingRelatedPost = useIsLoadingRelatedPost(); const isSaving = useIsSaving(); const isSubscribed = useIsSubscribed(); const relatedPostStatus = useRelatedPostStatus(); const title =