import BaseLayout from '@layouts/base'; import { getAccounts } from '@utils/storage'; import LumeSymbol from '@assets/icons/Lume'; import { useRouter } from 'next/router'; import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal, useEffect } from 'react'; export default function Page() { const router = useRouter(); useEffect(() => { getAccounts() .then((res: any) => { if (res.length > 0) { router.push('/init'); } else { router.push('/onboarding'); } }) .catch(console.error); }, [router]); return (
{/* dragging area */}
{/* end dragging area */}

Here's an interesting fact:

Bitcoin and Nostr can be used by anyone, and no one can stop you!

); } Page.getLayout = function getLayout( page: | string | number | boolean | ReactElement> | ReactFragment | ReactPortal ) { return {page}; };