PluginProbe
BeyondWords – AI audio for publishers / 7.0.0
BeyondWords – AI audio for publishers v7.0.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 4.7.0 All 43 releases
speechkit / src / editor / block / document-setting / index.js

index.js in BeyondWords – AI audio for publishers 7.0.0, at src/editor/block/document-setting/index.js

41 lines 1.3 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 { PanelRow } from '@wordpress/components';
5 import { PluginDocumentSettingPanel } from '@wordpress/editor';
6 import { Component } from '@wordpress/element';
7
8 /**
9 * Internal dependencies
10 */
11 import { BeyondwordsTitle } from '../../components/icon';
12 import ErrorNotice from '../../components/error-notice';
13 import GenerateAudio from '../../components/generate-audio';
14 import OpenSidebar from '../../components/open-sidebar';
15 import PendingNotice from '../../components/pending-notice';
16 import PlayAudio from '../../components/play-audio';
17 import Stack from '../../components/stack';
18
19 export default class DocumentSettingPanel extends Component {
20 // Voice and Player settings live only in the plugin sidebar; this panel keeps
21 // "Generate audio" plus the link to open it.
22 render() {
23 return (
24 <PluginDocumentSettingPanel
25 name="beyondwords-document-settings-panel"
26 title={ <BeyondwordsTitle /> }
27 className="beyondwords-sidebar"
28 >
29 <Stack>
30 <ErrorNotice wrapper={ PanelRow } />
31 <PendingNotice wrapper={ PanelRow } />
32 <PlayAudio wrapper={ PanelRow } />
33 <GenerateAudio wrapper={ PanelRow } />
34 <hr />
35 <OpenSidebar wrapper={ PanelRow } />
36 </Stack>
37 </PluginDocumentSettingPanel>
38 );
39 }
40 }
41