kiln-app 0.1.0

Native desktop apps from real HTML, CSS and TypeScript, rendered without Chromium or a WebView
1
2
3
4
5
6
7
8
import { get } from "./store.js";

export const plural = (n, word) => `${n} ${word}${n === 1 ? "" : "s"}`;

export function summary() {
  const { count, log } = get();
  return `${plural(count, "unit")} after ${plural(log.length, "action")}`;
}