REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.36 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Draft/components/EditMenu.jsx
Text
Base64
import { useContentHighlight } from '@draft/hooks/useContentHighlight'; import { useSelectedText } from '@draft/hooks/useSelectedText'; import { twoLines } from '@draft/svg'; import { MenuGroup, MenuItem } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; import { useEffect } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { customPostType, Icon, paragraph, postContent, termDescription, } from '@wordpress/icons'; export const EditMenu = ({ disabled, setPrompt }) => { const { toggleHighlight } = useContentHighlight(); const { selectedText } = useSelectedText(); const selectedBlockClientIds = useSelect( (select) => select('core/block-editor').getSelectedBlockClientIds(), [], ); useEffect(() => { return () => { toggleHighlight(selectedBlockClientIds, { isHighlighted: false }); }; }, [selectedBlockClientIds, toggleHighlight]); const handleClick = (promptType) => { setPrompt({ text: selectedText, promptType, systemMessageKey: 'edit', }); }; const actionsList = [ { label: __('Improve writing', 'extendify-local'), promptType: 'improve-writing', systemMessageKey: 'edit', icon: <Icon icon={customPostType} />, }, { label: __('Fix spelling & grammar', 'extendify-local'), promptType: 'fix-spelling-grammar', icon: <Icon icon={termDescription} />, }, { label: __('Simplify language', 'extendify-local'), promptType: 'simplify-language', icon: <Icon icon={paragraph} />, }, { label: __('Make shorter', 'extendify-local'), promptType: 'make-shorter', icon: <Icon icon={twoLines} />, }, { label: __('Make longer', 'extendify-local'), promptType: 'make-longer', icon: <Icon icon={postContent} />, }, ]; return ( <MenuGroup> {actionsList.map(({ label, promptType, icon }) => ( <MenuItem key={`${promptType}-${promptType}-edit`} onClick={() => handleClick(promptType)} onMouseEnter={() => toggleHighlight(selectedBlockClientIds, { isHighlighted: true, }) } onMouseLeave={() => toggleHighlight(selectedBlockClientIds, { isHighlighted: false, }) } icon={icon} iconPosition="left" disabled={disabled} className="group" > <span className="whitespace-normal text-left rtl:text-right"> {label} </span> </MenuItem> ))} </MenuGroup> ); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
image-generation
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
stock-images
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Completion.jsx
616 B
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConsentSidebar.jsx
769 B
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DraftMenu.jsx
1.22 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DynamicTextarea.jsx
2.15 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EditMenu.jsx
2.36 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GenerateImageButtons.jsx
5.11 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Input.jsx
2.52 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InsertMenu.jsx
7.46 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SelectedText.jsx
1.69 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ToolbarMenu.jsx
5.04 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TranslationDropdown.jsx
6.34 KB
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).