PluginProbe
Extendify / 1.9.0
Extendify v1.9.0
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Draft / app.js

app.js in Extendify 1.9.0, at src/Draft/app.js

24 lines 726 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post'
2 import { __ } from '@wordpress/i18n'
3 import { registerPlugin } from '@wordpress/plugins'
4 import { Draft } from '@draft/Draft'
5 import { magic } from '@draft/svg'
6 import './app.css'
7
8 registerPlugin('extendify-draft', {
9 render: () => (
10 <>
11 <PluginSidebarMoreMenuItem target="draft">
12 {__('Draft', 'extendify')}
13 </PluginSidebarMoreMenuItem>
14 <PluginSidebar
15 name="draft"
16 icon={magic}
17 title={__('AI Tools', 'extendify')}
18 className="extendify-draft">
19 <Draft />
20 </PluginSidebar>
21 </>
22 ),
23 })
24