Blog Posts

Blog Posts

Latest News Articles

Stay up to date with the latest improvements and new features

import { useEffect } from "react"; export function PopupControl() { useEffect(() => { const today = new Date().toDateString(); const lastShown = localStorage.getItem("popupLastShown"); // Only show if it hasn't been shown today if (lastShown !== today) { const overlay = document.querySelector("[data-framer-name='popup overlay']"); if (overlay) { // Simulate the overlay opening overlay.style.display = "block"; } localStorage.setItem("popupLastShown", today); } }, []); return null; }