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"}