'use client'; import type { AlignmentStats } from '@/lib/alignment-stats'; function StatChip({ label, value, valueClass, hint, }: { label: string; value: string; valueClass: string; hint?: string; }) { return (
{label} {value} {hint && {hint}}
); } /** * Renders the four core alignment metrics — Matched, Mismatched, Gaps and * Length — plus percent identity. Used by every alignment viewer in the app * so the numbers are always presented identically. */ export function AlignmentStatsBar({ stats, gapDetail, className = '', }: { stats: AlignmentStats; /** Extra text appended to the Gaps chip, e.g. total gap characters. */ gapDetail?: string; className?: string; }) { if (stats.length === 0) return null; return (
); }