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.

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

export type OpenTaskResult = {
  readonly url: string;
  readonly opened: boolean;
};

export function renderOpenTask(ui: Ui, result: OpenTaskResult): string[] {
  const { theme, glyphs } = ui;
  const verb = result.opened ? "Opened" : "Open";
  return [
    "",
    `  ${theme.muted(glyphs.arrow)} ${verb} ${theme.info(result.url)}`,
    "",
  ];
}