Files
yaak/src-web/components/core/CountBadge.tsx
Gregory Schier c9b4e6181c Use new theme vars (#63)
This PR swaps the theme to use the new stuff from the Theme Studio
2024-08-13 07:44:28 -07:00

22 lines
419 B
TypeScript

import classNames from 'classnames';
interface Props {
count: number;
className?: string;
}
export function CountBadge({ count, className }: Props) {
if (count === 0) return null;
return (
<div
aria-hidden
className={classNames(
className,
'opacity-70 border border-border-subtle text-4xs rounded mb-0.5 px-1 ml-1 h-4 font-mono',
)}
>
{count}
</div>
);
}