X7ROOT File Manager
Current Path:
/home/okeydcqc/.trash/wp-content.5/plugins/extendify/src/Draft/components
home
/
okeydcqc
/
.trash
/
wp-content.5
/
plugins
/
extendify
/
src
/
Draft
/
components
/
ðŸ“
..
📄
Completion.jsx
(613 B)
📄
ConsentSidebar.jsx
(798 B)
📄
DraftMenu.jsx
(1.22 KB)
📄
DynamicTextarea.jsx
(2.14 KB)
📄
EditMenu.jsx
(2.36 KB)
📄
GenerateImageButtons.jsx
(5.1 KB)
📄
Input.jsx
(2.52 KB)
📄
InsertMenu.jsx
(7.16 KB)
📄
SelectedText.jsx
(1.68 KB)
📄
ToolbarMenu.jsx
(5 KB)
📄
TranslationDropdown.jsx
(6.13 KB)
ðŸ“
image-generation
ðŸ“
stock-images
Editing: DraftMenu.jsx
import { MenuGroup, MenuItem } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { pencil } from '@wordpress/icons'; export const DraftMenu = ({ disabled, setInputText, setReady }) => { const handleClick = (inputText) => { setInputText(inputText); setReady(false); }; const actionsList = [ { label: __('A paragraph …', 'extendify-local'), onClickText: __('Write a paragraph about', 'extendify-local'), }, { label: __('Blog post …', 'extendify-local'), onClickText: __('Write a blog post about', 'extendify-local'), }, { label: __('An informative article …', 'extendify-local'), onClickText: __('Write an informative article about', 'extendify-local'), }, { label: __('Headline …', 'extendify-local'), onClickText: __('Write a headline for', 'extendify-local'), }, { label: __('List …', 'extendify-local'), onClickText: __('Write a list of', 'extendify-local'), }, ]; return ( <MenuGroup> {actionsList.map(({ label, onClickText }) => ( <MenuItem key={label} onClick={() => handleClick(`${onClickText} `)} disabled={disabled} icon={pencil} iconPosition="left"> {label} </MenuItem> ))} </MenuGroup> ); };
Upload File
Create Folder