+
{ ! isPublishSidebarOpened && (
// This button isn't completely hidden by the publish sidebar.
// We can't hide the whole toolbar when the publish sidebar is open because
diff --git a/packages/edit-post/src/components/header/post-settings-button/index.js b/packages/edit-post/src/components/header/post-settings-button/index.js
new file mode 100644
index 0000000000000..747eacbe9ed34
--- /dev/null
+++ b/packages/edit-post/src/components/header/post-settings-button/index.js
@@ -0,0 +1,42 @@
+/**
+ * WordPress dependencies
+ */
+import { Button } from '@wordpress/components';
+import { useDispatch, useSelect } from '@wordpress/data';
+import { cog } from '@wordpress/icons';
+import { __, sprintf } from '@wordpress/i18n';
+
+export default function PostSettingsButton( { showIconLabels } ) {
+ const documentLabel = useSelect( ( select ) => {
+ const currentPostType = select( 'core/editor' ).getCurrentPostType();
+ const postType = select( 'core' ).getPostType( currentPostType );
+
+ return (
+ // Disable reason: Post type labels object is shaped like this.
+ // eslint-disable-next-line camelcase
+ postType?.labels?.singular_name ??
+ // translators: Default label for the Document sidebar tab, not selected.
+ __( 'Document' )
+ );
+ }, [] );
+
+ const { openModal } = useDispatch( 'core/edit-post' );
+
+ return (
+
) }
@@ -284,6 +278,7 @@ function Layout() {
next: nextShortcut,
} }
/>
+