import { Flame, MapPin } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { ScrollArea } from "@/components/ui/scroll-area"; interface HotspotCellInfo { id: string; title: string; subtitle: string; intensity: number; onFocus: () => void; } interface HotspotStatsPanelProps { hasLocation: boolean; radiusKm: number; locationHint: string; cells: HotspotCellInfo[]; } export function HotspotStatsPanel({ hasLocation, radiusKm, locationHint, cells }: HotspotStatsPanelProps) { const { t } = useTranslation(); return ( {t("hotspots.title")} {t("hotspots.description", { radius: radiusKm })} {!hasLocation &&

{locationHint}

} {hasLocation && cells.length === 0 &&

{t("hotspots.empty")}

} {cells.length > 0 && (
    {cells.map(cell => (
  • {cell.title} {cell.subtitle}
    {cell.intensity.toFixed(1)}
  • ))}
)}
); }