import { Button, Panel } from "@void-nav/ui"; import type { PointOfInterest, Ship } from "../module_bindings/types"; export function TargetPanel({ ship, pois, selected, onSelect, }: { ship?: Ship; pois: PointOfInterest[]; selected?: PointOfInterest; onSelect: (poiId: string) => void; }) { const current = pois.find((poi) => poi.poiId === ship?.currentPoiId); return (

Selected Target

{selected?.name ?? "No target selected"}

{ship?.flightMode ?? "offline"}
{pois.map((poi) => ( ))}
); } function InfoRow({ label, value }: { label: string; value: string }) { return (
{label}
{value}
); }