UNPKG

@botpress/adk-cli

Version:

Command-line interface for the Botpress Agent Development Kit (ADK)

48 lines (45 loc) 1.21 kB
// @bun import { ADK_LOGO_LINE1, ADK_LOGO_LINE2 } from "./chunk-9e2nksab.js"; import { bold, box, fg, getActiveTheme, t, text } from "./chunk-m2h26j5f.js"; // src/components/adk-logo.ts function adkLogo(ctx, props = {}) { const theme = getActiveTheme(); const { title = "Botpress ADK", subtitle, align = "left", logoColor = theme.accent.purple, titleColor = theme.text.primary, subtitleColor = theme.text.dim } = props; const isCentered = align === "center"; const titleColumn = [text(ctx, t`${fg(titleColor)(bold(title))}`)]; if (subtitle) { titleColumn.push(text(ctx, t`${fg(subtitleColor)(subtitle)}`)); } return box(ctx, { flexDirection: "column", alignItems: isCentered ? "center" : undefined }, [ box(ctx, { flexDirection: "row", gap: 2, alignItems: "center", justifyContent: isCentered ? "center" : undefined }, [ box(ctx, { flexDirection: "column" }, [ text(ctx, t`${fg(logoColor)(bold(ADK_LOGO_LINE1))}`), text(ctx, t`${fg(logoColor)(bold(ADK_LOGO_LINE2))}`) ]), box(ctx, { flexDirection: "column", justifyContent: "center" }, titleColumn) ]) ]); } export { adkLogo };