Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > > src > Assist > components
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 |
---|---|---|---|---|
dashboard | Directory | - | - | |
tasks | Directory | - | - | |
ImageUploader.jsx | File | 4827 bytes | July 16 2024 23:59:12. | |
Modal.jsx | File | 1597 bytes | October 08 2024 14:19:28. |
import { Button } from '@wordpress/components'; import { useState, useEffect } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { Icon, close } from '@wordpress/icons'; import { Dialog, DialogTitle } from '@headlessui/react'; import { useGlobalStore } from '@assist/state/globals'; export const Modal = () => { const { modals, popModal } = useGlobalStore(); const ModalContent = modals[0]; const [title, setTitle] = useState(''); useEffect(() => { if (!modals[0]) setTitle(''); }, [modals]); return ( <Dialog as="div" className="extendify-assist" open={modals.length > 0} onClose={popModal}> <div className="fixed top-0 z-high mx-auto h-full w-full items-center justify-center overflow-hidden p-2 md:flex md:p-6"> <div className="fixed inset-0 bg-black/40 transition-opacity" aria-hidden="true" /> <div className="relative mx-auto flex flex-col rounded-sm bg-white shadow-2xl sm:flex sm:min-w-md sm:overflow-hidden"> <div className="flex items-center justify-between"> <DialogTitle className="m-0 px-6 text-base text-gray-900"> {title} </DialogTitle> <Button className="m-4 cursor-pointer border-0" onClick={popModal} icon={<Icon icon={close} size={24} />} label={__('Close Modal', 'extendify-local')} showTooltip={false} /> </div> <div className="relative m-0 p-6 pt-0 text-left"> {modals?.length > 0 && ( <ModalContent popModal={popModal} setModalTitle={setTitle} /> )} </div> </div> </div> </Dialog> ); };
SILENT KILLER Tool