/** * WorthDoing.ai * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * File: src/components/wd/StatsBar.tsx * Description: Sticky budget/telemetry bar — searches, reads, evidence, steps, live cost. */ "use client"; import type { UiBudget, UiBudgetUsed } from "@/lib/ui/api"; function Stat({ label, value, max }: { label: string; value: number | string; max?: number }) { return (
{value} {max !== undefined && /{max}} {label}
); } export function StatsBar({ budget, used, evidenceCount, hypothesisCount, }: { budget: UiBudget; used: UiBudgetUsed; evidenceCount: number; hypothesisCount: number; }) { return (
); }