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 (
{currentIdx + 1} / {instances.length} {/* Dot navigation for nearby instances */}
{instances.slice(Math.max(0, currentIdx - 5), currentIdx + 6).map((g) => (
); }