summaryrefslogtreecommitdiff
blob: 98bdca977ee612402ae0678cb3864daae3473282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>
	),
};