PluginProbe
Extendify / 3.0.5
Extendify v3.0.5
3.2.1 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 All 127 releases
extendify / src / Agent / components / PageDocument.jsx

PageDocument.jsx in Extendify 3.0.5, at src/Agent/components/PageDocument.jsx

30 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { selectedContent } from '@agent/icons';
2 import { useWorkflowStore } from '@agent/state/workflows';
3 import { __ } from '@wordpress/i18n';
4 import { close, Icon } from '@wordpress/icons';
5
6 export const PageDocument = ({ busy }) => {
7 const { setBlock } = useWorkflowStore();
8 return (
9 <div className="flex w-fit items-center justify-start gap-1 rounded-sm border border-gray-500 bg-gray-100 p-1 text-sm text-gray-900">
10 <div className="flex items-center gap-1">
11 <Icon icon={selectedContent} />
12 <div>{__('Selected content', 'extendify-local')}</div>
13 </div>
14 <button
15 type="button"
16 disabled={busy}
17 className="flex h-full items-center rounded-none border-0 bg-transparent outline-hidden ring-design-main focus:shadow-none focus:outline-hidden focus-visible:outline-design-main"
18 onClick={() => setBlock(null)}
19 >
20 <Icon
21 className="pointer-events-none fill-current leading-none"
22 icon={close}
23 size={18}
24 />
25 <span className="sr-only">{__('Remove', 'extendify-local')}</span>
26 </button>
27 </div>
28 );
29 };
30