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.
16 lines
502 B
TypeScript
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,
|
|
};
|
|
}
|