summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/seo/index.js')
-rw-r--r--plugins/jetpack/extensions/blocks/seo/index.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/seo/index.js b/plugins/jetpack/extensions/blocks/seo/index.js
new file mode 100644
index 00000000..98bdca97
--- /dev/null
+++ b/plugins/jetpack/extensions/blocks/seo/index.js
@@ -0,0 +1,39 @@
+/**
+ * External dependencies
+ */
+import { __ } from '@wordpress/i18n';
+import { Fragment } from '@wordpress/element';
+import { PanelBody } from '@wordpress/components';
+import { PluginPrePublishPanel } from '@wordpress/edit-post';
+
+/**
+ * Internal dependencies
+ */
+import './editor.scss';
+import JetpackPluginSidebar from '../../shared/jetpack-plugin-sidebar';
+import SeoPanel from './panel';
+
+export const name = 'seo';
+
+export const settings = {
+ render: () => (
+ <Fragment>
+ <JetpackPluginSidebar>
+ <PanelBody title={ __( 'SEO Description', 'jetpack' ) }>
+ <SeoPanel />
+ </PanelBody>
+ </JetpackPluginSidebar>
+ <PluginPrePublishPanel
+ initialOpen
+ id="seo-title"
+ title={
+ <span id="seo-defaults" key="seo-title-span">
+ { __( 'SEO Description', 'jetpack' ) }
+ </span>
+ }
+ >
+ <SeoPanel />
+ </PluginPrePublishPanel>
+ </Fragment>
+ ),
+};