import type { Color } from '@yaakapp-internal/plugins'; import classNames from 'classnames'; interface Props { count: number | true; count2?: number | true; className?: string; color?: Color; showZero?: boolean; } export function CountBadge({ count, count2, className, color, showZero }: Props) { if (count === 0 && !showZero) return null; return (
{count === true ? (
) : ( count )} {count2 != null && ( <> / {count2 === true ? (
) : ( count2 )} )}
); }