diff --git a/packages/editor/README.md b/packages/editor/README.md index d4161f9bac626..726a2d833419a 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -1274,7 +1274,11 @@ Undocumented declaration. ### PostSyncStatus -Undocumented declaration. +Renders the sync status of a post. + +_Returns_ + +- `JSX.Element|null`: The rendered sync status component. ### PostTaxonomies diff --git a/packages/editor/src/components/post-sync-status/index.js b/packages/editor/src/components/post-sync-status/index.js index 0ed10cd2482a2..e9db86bf221e0 100644 --- a/packages/editor/src/components/post-sync-status/index.js +++ b/packages/editor/src/components/post-sync-status/index.js @@ -10,6 +10,11 @@ import { __, _x } from '@wordpress/i18n'; import PostPanelRow from '../post-panel-row'; import { store as editorStore } from '../../store'; +/** + * Renders the sync status of a post. + * + * @return {JSX.Element|null} The rendered sync status component. + */ export default function PostSyncStatus() { const { syncStatus, postType } = useSelect( ( select ) => { const { getEditedPostAttribute } = select( editorStore );