/** * — compact bar for the top of the agent sidebar. * * Shows "Setup: N of M complete" plus a Continue button that expands the * full . Use when you want the panel collapsed by default. */ import { IconChecklist, IconChevronRight } from "@tabler/icons-react"; import React from "react"; import { useOnboarding } from "./use-onboarding.js"; interface OnboardingBannerProps { onContinue?: () => void; className?: string; } export function OnboardingBanner({ onContinue, className, }: OnboardingBannerProps) { const { loading, totalCount, completeCount, allComplete, dismissed } = useOnboarding(); if (loading || totalCount === 0 || allComplete || dismissed) return null; return ( ); } const styles: Record = { root: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", padding: "8px 12px", border: "none", borderBottom: "1px solid hsl(var(--border) / 0.7)", background: "hsl(var(--primary) / 0.06)", color: "inherit", fontSize: 12, cursor: "pointer", textAlign: "start" as const, }, left: { display: "flex", alignItems: "center", gap: 6 }, title: { fontWeight: 600 }, counter: { opacity: 0.65, marginInlineStart: 4 }, cta: { display: "flex", alignItems: "center", gap: 4, color: "#60a5fa", fontWeight: 500, }, };