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.

412 B
Raw Blame
import type { Ui } from "../render/ui.js";

export function renderNotificationsRead(
  ui: Ui,
  result: { readonly all: boolean; readonly count: number },
): string[] {
  const { theme, glyphs } = ui;
  const what = result.all
    ? "all notifications"
    : `${result.count} ${result.count === 1 ? "notification" : "notifications"}`;
  return ["", `  ${theme.success(glyphs.tick)} Marked ${what} read`, ""];
}