"use client"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useHitlBundle } from "@/lib/hitl"; /** * Prev/next nav and Submit for the current step of an active HITL bundle. * Submission is gated on every action_request having a staged decision. */ export function PagerChrome() { const bundle = useHitlBundle(); if (!bundle) return null; const total = bundle.toolCallIds.length; const step = bundle.currentStep; const allStaged = bundle.stagedCount === total; return (
{step + 1} / {total} ยท {bundle.stagedCount} of {total} decided
); }