PluginProbe
BeyondWords – AI audio for publishers / 7.2.0
BeyondWords – AI audio for publishers v7.2.0
7.2.0 7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 All 44 releases
speechkit / src / editor / block / sidebar / index.js

index.js in BeyondWords – AI audio for publishers 7.2.0, at src/editor/block/sidebar/index.js

45 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { __ } from '@wordpress/i18n';
5 import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/editor';
6 import { Component, Fragment } from '@wordpress/element';
7
8 /**
9 * Internal dependencies
10 */
11 import { BeyondwordsIcon } from '../../components/icon';
12 import DataPanel from '../../components/data-panel';
13 import HelpPanel from '../../components/help-panel';
14 import InspectPanel from '../../components/inspect-panel';
15 import PreviewPanel from '../../components/preview-panel';
16 import SettingsPanel from '../../components/settings-panel';
17
18 export default class Sidebar extends Component {
19 render() {
20 return (
21 <Fragment>
22 <PluginSidebarMoreMenuItem
23 target="plugin-sidebar"
24 icon={ <BeyondwordsIcon /> }
25 >
26 { __( 'BeyondWords', 'speechkit' ) }
27 </PluginSidebarMoreMenuItem>
28 { /* Must stay a string — it becomes the pinned button's aria-label. */ }
29 <PluginSidebar
30 name="plugin-sidebar"
31 title={ __( 'BeyondWords', 'speechkit' ) }
32 icon={ <BeyondwordsIcon /> }
33 headerClassName="beyondwords-sidebar__header"
34 >
35 <PreviewPanel />
36 <SettingsPanel />
37 <HelpPanel />
38 <DataPanel />
39 <InspectPanel />
40 </PluginSidebar>
41 </Fragment>
42 );
43 }
44 }
45