import type { GroupedInstance } from "../types"; interface Props { instances: GroupedInstance[]; currentId: string; onSelect: (id: string) => void; } export function InstanceNav({ instances, currentId, onSelect }: Props) { const currentIdx = instances.findIndex((g) => g.instance_id === currentId); return (