"use client"; import { useTranslations } from "next-intl"; import type { HeatmapPoint } from "@/hooks/use-heatmap-data"; interface MapPopupProps { point: HeatmapPoint; onClose: () => void; } export function MapPopup({ point, onClose }: MapPopupProps) { const t = useTranslations("continentMap"); const tPopup = useTranslations("clawPopup"); return (

{point.city}

{point.country}

{tPopup("total", { count: point.clawCount })} {tPopup("online", { count: point.onlineCount })}
{point.claws.length > 0 && (
{point.claws.map((claw) => (
{claw.name} {claw.isOnline ? t("online") : t("offline")}
))}
)}
); }