diff --git a/packages/editor/README.md b/packages/editor/README.md index 31c7f5a6bb8b2a..63404ddc90af63 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -288,7 +288,11 @@ Undocumented declaration. ### EditorSnackbars -Undocumented declaration. +Renders the editor snackbars component. + +_Returns_ + +- `JSX.Element`: The rendered component. ### EntitiesSavedStates diff --git a/packages/editor/src/components/editor-snackbars/index.js b/packages/editor/src/components/editor-snackbars/index.js index 8827f97a97c7ce..6530e1ec7ea902 100644 --- a/packages/editor/src/components/editor-snackbars/index.js +++ b/packages/editor/src/components/editor-snackbars/index.js @@ -8,6 +8,11 @@ import { store as noticesStore } from '@wordpress/notices'; // Last three notices. Slices from the tail end of the list. const MAX_VISIBLE_NOTICES = -3; +/** + * Renders the editor snackbars component. + * + * @return {JSX.Element} The rendered component. + */ export default function EditorSnackbars() { const notices = useSelect( ( select ) => select( noticesStore ).getNotices(),