import { loadScripts } from '@/lib/loadNewsletterScripts'; import Script from 'next/script'; import { useEffect } from 'react'; import { CloudIcon } from '@heroicons/react/solid'; export default function NewsletterForm() { useEffect(() => { /* * The newsletter scripts MUST be loaded after * the document is loaded, as they depend on * the presence of some elements * */ if (document.readyState === 'complete') { const { resetElements } = loadScripts(); return () => { resetElements(); }; } else { window.addEventListener('load', loadScripts); return () => window.removeEventListener('load', loadScripts); } }, []); return (

Join the PortalJS Cloud waitlist and get early access!

Your subscription could not be saved. Please try again.
Your subscription has been successful.
); }