import React from 'react'; import cn from 'classnames'; import './Badge.scss'; interface BadgeProps { count: number; limit?: number; mute?: boolean; classNames?: string; } export default function Badge({ count, limit, mute = false, classNames, }: BadgeProps) { return (
{limit && count > limit ? `${limit}+` : count}
); }