"use client"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useHitlBundle } from "./bundle-context"; /** * 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. * * Mounted ONCE by ``timeline.tsx`` when the bundle is active. Does NOT * wrap individual cards. Reads bundle state via ``useHitlBundle()``; * renders nothing when no bundle is active. */ 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 (