import { useRouter } from 'next/router'; import { useEffect, useState } from 'react'; import { Modal } from "~/components/ui/modal" import { getAuth } from '~/libs/auth'; import PageContent from '../page-content'; import Link from 'next/link'; const PagePopupInformation = () => { const router = useRouter(); const isHomePage = router.pathname === '/'; const auth = getAuth(); const [active, setActive] = useState(false); useEffect(() => { if (isHomePage && !auth) { setActive(true); } }, [isHomePage, auth]); return (
setActive(false)} mode='desktop' >
{/* Daftar Sekarang */}
); }; export default PagePopupInformation;