Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

550 B
Raw Blame
import { MessageSquareMore } from "@langfuse/icons";

import { BadgeShell } from "@/src/components/design-system/Badge/Badge";

export function CommentCountIcon({
  count,
  color = "filled",
}: {
  count: number;
  /** `filledOnMuted` on a muted or accent surface such as a selected row. */
  color?: "filled" | "filledOnMuted";
}) {
  return (
    <BadgeShell color={color} font="mono" size="md">
      <MessageSquareMore aria-hidden size="sm" />
      <span data-testid="comment-count">{count > 99 ? "99+" : count}</span>
    </BadgeShell>
  );
}