import styles from '/styles/ReadyOrNot.module.css' import Link from 'next/link' import { useRouter } from 'next/router' import useSWR from 'swr'; import ReadyOrNotMap from '../interfaces/ReadyOrNot'; import React, { useState } from 'react'; import Image from 'next/image' const fetcher = (url: string) => fetch(url).then((res) => res.json()) function stopPropagation(e: any) { e.stopPropagation(); } const Sidebar = () => { const router = useRouter(); const [active, setActive] = useState(true); const { maps, isLoading, isError } = useNavbar(); if (isError) { return (
) } else if (isLoading) { return (