mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 22:22:02 +02:00
Request history navigator
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
import classnames from 'classnames';
|
||||
|
||||
interface Props {
|
||||
count: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function CountBadge({ count }: Props) {
|
||||
export function CountBadge({ count, className }: 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>
|
||||
</>
|
||||
<div
|
||||
aria-hidden
|
||||
className={classnames(
|
||||
className,
|
||||
'opacity-70 border border-highlight text-3xs rounded mb-0.5 px-1 ml-1 h-4 font-mono',
|
||||
)}
|
||||
>
|
||||
{count}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user