utils.ts raw

   1  export function formatCount(count?: number) {
   2    if (count === undefined || count <= 0) return ''
   3    return count >= 100 ? '99+' : count
   4  }
   5