mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-19 15:21:23 +02:00
Show response headers
This commit is contained in:
12
src-web/components/core/CountBadge.tsx
Normal file
12
src-web/components/core/CountBadge.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
interface Props {
|
||||
count: number;
|
||||
}
|
||||
|
||||
export function CountBadge({ count }: Props) {
|
||||
if (count === 0) return null;
|
||||
return (
|
||||
<div aria-hidden className="opacity-80 text-2xs border rounded px-1 mb-0.5 ml-1 h-4">
|
||||
{count}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user