import { cn } from "@prototype/lib/utils";
type CommentHeaderCountProps = {
unresolved: number;
total: number;
className?: string;
};
export function CommentHeaderCount({
unresolved,
total,
className,
}: CommentHeaderCountProps) {
if (total === 0) return null;
const base = cn("ml-1.5 tabular-nums", className);
if (unresolved === total) {
return {total};
}
return (
{unresolved}
/ {total}
);
}