File size: 220 Bytes
714ed7b
 
 
 
 
 
1
2
3
4
5
6
7
import { pluralize } from "../utils/format";

export function CommentCount({ count }: { count: number }) {
  if (count === 0) return null;
  return <span className="comment-count">{pluralize(count, "comment")}</span>;
}