import React from 'react' import Modal from 'react-modal' import ModalEnvatoIcon from './ModalEnvatoIcon' import styles from './MagicModalWrapper.module.scss' const customStyles = { overlay: { backgroundColor: 'rgba(32, 32, 32, 0.81)', zIndex: 199999, display: 'flex', justifyContent: 'center', alignItems: 'center' }, content: { background: '#f1f1f1', border: '0', padding: '0', right: 'auto', bottom: 'auto', top: 'auto', left: 'auto', borderRadius: '4px' } } const MagicModalWrapper = ({ photoId, photoTitle, onCloseCallback = null, children }) => { const [modalIsOpen, setModalIsOpen] = React.useState(true) const closeModal = () => { setModalIsOpen(false) if (onCloseCallback) { onCloseCallback() } } // Make sure to bind modal to your appElement (http://reactcommunity.org/react-modal/accessibility/) // We get window.templateKitImport.modalAppHolder from our initial render in main.jsx: if (typeof window !== 'undefined' && window.templateKitImport && window.templateKitImport.modalAppHolder) { Modal.setAppElement(window.templateKitImport.modalAppHolder) } return (
{typeof children === 'function' ? children({ closeModal }) : children}
) } export default MagicModalWrapper May, 2025 - DigiGrowths - Page 3

Month: May 2025

How The Sun Play Redefines Safe Gaming This Holiday Season

How The Sun Play Redefines Safe Gaming This Holiday Season Many beginners think that any online casino will give the same experience. That assumption is risky. When you sign up, you instantly face decisions about bonuses, game selection, and payment methods. If you rush, you may miss the hidden costs hidden in wagering requirements. Common …

How The Sun Play Redefines Safe Gaming This Holiday Season Read More »