Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

432 B
Raw Blame
import { useTranslation } from "react-i18next";

export function TaskCount({ shown, total }: { shown: number; total: number }) {
  const { t } = useTranslation();

  return (
    <span className="hidden truncate text-xs text-muted-foreground tabular-nums sm:inline">
      {shown === total
        ? t("tasks:toolbar.taskCount", { count: total })
        : t("tasks:toolbar.shownCount", { shown, count: total })}
    </span>
  );
}