import { cn } from "@/lib/utils";

/** Tag for a structure's maturity event that falls on its Final Valuation Date. */
export function CashflowFinalValuationBadge({
  compact = false,
  className,
}: {
  compact?: boolean;
  className?: string;
}) {
  return (
    <span
      className={cn(
        "inline-flex shrink-0 items-center rounded bg-amber-100 px-1.5 py-0.5 font-medium text-amber-800 dark:bg-amber-500/15 dark:text-amber-300",
        compact ? "text-[8px] leading-none" : "text-[10px]",
        className,
      )}
      title="Final valuation date"
    >
      {compact ? "FVD" : "Final valuation"}
    </span>
  );
}
