evOo-local/apps/mobile/lib/app-connect.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

16 lines
502 B
TypeScript

import type { MessageBlock } from "@rakazo/contracts";
import { t } from "./i18n";
export type AppConnectBlock = Extract<MessageBlock, { kind: "app_connect" }>;
export function appConnectPresentation(block: AppConnectBlock, busy = false) {
const connected = block.status === "connected";
return {
title: block.name,
description: block.description,
showAuthorize: !connected,
actionLabel: connected ? t("Connected") : busy ? t("Waiting…") : t("Authorize"),
connected,
};
}