'use client'; import dynamic from 'next/dynamic'; import { useState, useEffect } from 'react'; import LibraryList from './components/LibraryList'; // Dynamically import the map component to avoid SSR issues const MapComponent = dynamic(() => import('./components/MapComponent'), { ssr: false, loading: () =>
Loading availability data...
} {error &&Error: {error}
} {!loading && !error && ( <>{availableCount} of {totalCount} locations have available passes
Last updated: {new Date(lastUpdated).toLocaleString()}
)} > )} > )}