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.

415 B
Raw Blame
type Translate = (key: string, values?: Record<string, unknown>) => string;

type Device = { browser: string | null; os: string | null };

/** "Firefox on Linux", or whichever half is known. */
export function getSessionDeviceLabel({ browser, os }: Device, t: Translate) {
  if (browser && os) return t("settings:sessions.device", { browser, os });
  return browser ?? os ?? t("settings:sessions.unknownDevice");
}