"use client" import { ChevronLeft, ChevronRight, Cloud, Droplets, Wind } from "lucide-react" import { Button } from "@/app/_components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/app/_components/ui/card" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/app/_components/ui/tabs" import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/app/_components/ui/collapsible" import { cn } from "@/app/_lib/utils" interface MapSidebarProps { isOpen: boolean onToggle: () => void crimes?: Array<{ id: string district_name: string district_id?: string number_of_crime?: number level?: "low" | "medium" | "high" | "critical" incidents: any[] }> selectedYear?: number | string selectedMonth?: number | string weatherData?: { temperature: number condition: string humidity: number windSpeed: number forecast: Array<{ time: string temperature: number condition: string }> } } export default function MapSidebar({ isOpen, onToggle, crimes = [], selectedYear, selectedMonth, weatherData = { temperature: 78, condition: "Mostly cloudy", humidity: 65, windSpeed: 8, forecast: [ { time: "Now", temperature: 78, condition: "Cloudy" }, { time: "9:00 PM", temperature: 75, condition: "Cloudy" }, { time: "10:00 PM", temperature: 73, condition: "Cloudy" }, { time: "11:00 PM", temperature: 72, condition: "Cloudy" }, { time: "12:00 AM", temperature: 70, condition: "Cloudy" }, ], }, }: MapSidebarProps) { return (

Weather Information

Current Forecast {weatherData.temperature}°F {weatherData.condition}
Humidity: {weatherData.humidity}%
Wind: {weatherData.windSpeed} mph

Today's Recommendations

🌂
Umbrella
No need
🏞️
Outdoors
Very poor
{crimes.length > 0 ? ( crimes.map((crime) => (
{crime.district_name} {crime.number_of_crime}
)) ) : (
No crime data available
)}
{weatherData.forecast.map((item, index) => (
{item.time}
{item.condition} {item.temperature}°
))}
) }