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