21 lines
402 B
TypeScript
21 lines
402 B
TypeScript
interface TagBadgeProps {
|
|
count: number
|
|
className?: string
|
|
}
|
|
|
|
export function TagBadge({ count, className = '' }: TagBadgeProps) {
|
|
return (
|
|
<span
|
|
className={`
|
|
inline-flex items-center justify-center
|
|
px-2 py-1 font-mono text-xs font-bold
|
|
bg-cyan-900 border border-cyan-700
|
|
text-cyan-300
|
|
${className}
|
|
`}
|
|
>
|
|
{count}
|
|
</span>
|
|
)
|
|
}
|