Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > src > > HelpCenter
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
components | Directory | - | - | |
hooks | Directory | - | - | |
lib | Directory | - | - | |
pages | Directory | - | - | |
state | Directory | - | - | |
tours | Directory | - | - | |
HelpCenter.jsx | File | 1229 bytes | September 12 2024 19:49:54. | |
app.css | File | 1144 bytes | July 16 2024 23:59:12. | |
buttons.js | File | 1513 bytes | March 26 2025 18:03:22. | |
help-center.js | File | 650 bytes | March 26 2025 18:03:22. |
import { useEffect } from '@wordpress/element'; import { AnimatePresence } from 'framer-motion'; import { Modal } from '@help-center/components/modal/Modal'; import { GuidedTour } from '@help-center/components/tours/GuidedTour'; import { useRouter } from '@help-center/hooks/useRouter'; import { useGlobalSyncStore } from '@help-center/state/globals-sync'; export const HelpCenter = () => { // register a custom event to hide the Help Center. const { setVisibility, visibility } = useGlobalSyncStore(); const { navigateTo } = useRouter(); useEffect(() => { const handleOpen = (event) => { event?.detail?.page && navigateTo(event.detail.page); setVisibility('open'); }; const handleMinimize = () => { if (visibility !== 'open') return; setVisibility('minimized'); }; window.addEventListener('extendify-hc:open', handleOpen); window.addEventListener('extendify-hc:minimize', handleMinimize); return () => { window.removeEventListener('extendify-hc:open', handleOpen); window.removeEventListener('extendify-hc:minimize', handleMinimize); }; }, [setVisibility, visibility, navigateTo]); return ( <> <AnimatePresence> <Modal /> </AnimatePresence> <GuidedTour /> </> ); };
SILENT KILLER Tool