mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:14:03 +01:00
18 lines
321 B
TypeScript
18 lines
321 B
TypeScript
interface Props {
|
|
count: number;
|
|
}
|
|
|
|
export function CountBadge({ count }: Props) {
|
|
if (count === 0) return null;
|
|
return (
|
|
<>
|
|
<div
|
|
aria-hidden
|
|
className="opacity-70 border border-highlight text-3xs rounded mb-0.5 px-1 ml-1 h-4 font-mono"
|
|
>
|
|
{count}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|