REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.68 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Agent/components/buttons/Mobile.jsx
Text
Base64
import { magic } from '@agent/icons'; import { useGlobalStore } from '@agent/state/global'; import { useEffect, useRef } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { chevronUp, Icon } from '@wordpress/icons'; export const Mobile = () => { const { isMobile, minimized, setMinimized } = useGlobalStore(); const ref = useRef(null); const minimize = () => setMinimized(false); useEffect(() => { if (!isMobile || minimized) return; // Set button height as root var document.body.style.setProperty( '--extendify-agent-mobile-btn-height', `${ref.current?.offsetHeight}px`, ); }, [isMobile, minimized]); useEffect(() => { if (!isMobile) return; document.body.classList.add('extendify-agent-mobile-btn-open'); return () => { document.body.classList.remove('extendify-agent-mobile-btn-open'); }; }, [isMobile]); if (!isMobile || !minimized) return null; return ( <button ref={ref} type="button" className="m-0 flex w-full items-center justify-between gap-2 bg-gray-900 px-4 py-3 font-sans text-white shadow-[0_-1px_0_0_rgba(255,255,255,0.05)]" onClick={minimize} aria-label={__('Open Agent', 'extendify-local')} > <div className="flex gap-3"> <div className="flex h-10 w-10 items-center justify-center rounded-full bg-wp-theme-main"> <Icon icon={magic} size={24} /> </div> <div className="text-left text-sm rtl:text-right"> <div className="font-semibold"> {__('AI Agent', 'extendify-local')} </div> <div className="text-gray-600"> {__('How can we help you today?', 'extendify-local')} </div> </div> </div> <Icon className="fill-white" icon={chevronUp} size={24} /> </button> ); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AdminBar.jsx
1.63 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
Mobile.jsx
1.68 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
PostEditor.jsx
1.45 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
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).