'use client' import { AppSidebar } from '@/app/app-sidebar' import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage, } from '@/components/ui/breadcrumb' import { Separator } from '@/components/ui/separator' import { SidebarInset, SidebarProvider, SidebarTrigger, } from '@/components/ui/sidebar' import { MapComponent } from '@/components/map-component'; import { ThemeToggle } from '@/components/theme-toggle'; import { Timeline } from '@/app/timeline'; import { cn } from '@/lib/utils'; import { useTimeline } from '@/hooks/use-timeline'; import { useEffect } from 'react' import { useRadarTile } from '@/hooks/use-radartile' export default function Page() { const now = new Date(); const startDate = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000); // 7天前 const endDate = new Date(now.getTime() + 3 * 24 * 60 * 60 * 1000); // 3天后 const { setTime } = useTimeline() const { imgBitmap, fetchRadarTile } = useRadarTile({}) return (
October 2024
{ console.log('Selected date:', date); setTime(date) }} />
) }