Request history navigator

This commit is contained in:
Gregory Schier
2023-04-09 15:26:54 -07:00
parent fb38708fad
commit feec6fedfa
20 changed files with 277 additions and 67 deletions

View File

@@ -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>
);
}