import { usePositionStore } from '../stores/positionStore' import { getShipKindLabel, getShipKindColor } from '../../vessel-map/utils/shipKindColors' interface VesselPopupProps { onTrackQuery?: (mmsi: string) => void } export default function VesselPopup({ onTrackQuery }: VesselPopupProps) { const selectedMmsi = usePositionStore((s) => s.selectedMmsi) const positions = usePositionStore((s) => s.positions) const selectVessel = usePositionStore((s) => s.selectVessel) if (!selectedMmsi) return null const vessel = positions.get(selectedMmsi) if (!vessel) return null const kindLabel = getShipKindLabel(vessel.shipKindCode) const kindColor = getShipKindColor(vessel.shipKindCode) return (