The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import { mFallback, msg } from "gt-i18n"; |
| 2 | import type { MFunctionType } from "gt-i18n/types"; |
| 3 | |
| 4 | import type { CodexArtifactTemplateKind } from "./codexArtifactTemplates.ts"; |
| 5 | |
| 6 | const PRESENTATION_LABEL_BY_KIND = { |
| 7 | document: msg("Document template"), |
| 8 | presentation: msg("Presentation template"), |
| 9 | spreadsheet: msg("Spreadsheet template"), |
| 10 | site: msg("Site template"), |
| 11 | "google-docs": msg("Google Doc template"), |
| 12 | "google-slides": msg("Google Slides template"), |
| 13 | "google-sheets": msg("Google Sheet template"), |
| 14 | image: msg("Image template"), |
| 15 | email: msg("Email template"), |
| 16 | slack: msg("Slack template"), |
| 17 | } satisfies Record<CodexArtifactTemplateKind, string>; |
| 18 | |
| 19 | /** @public */ |
| 20 | export function codexArtifactTemplatePresentationLabel( |
| 21 | kind: CodexArtifactTemplateKind, |
| 22 | resolve: MFunctionType = mFallback, |
| 23 | ): string { |
| 24 | return resolve(PRESENTATION_LABEL_BY_KIND[kind]); |
| 25 | } |