pyb-ts
Version:
PYB-CLI - Minimal AI Agent with multi-model support and CLI interface
21 lines (20 loc) • 719 B
JavaScript
import { Box, Text } from "ink";
import * as React from "react";
import { getTheme } from "@utils/theme";
import { extractTag } from "@utils/messages";
function UserCommandMessage({
addMargin,
param: { text }
}) {
const commandMessage = extractTag(text, "command-message");
const args = extractTag(text, "command-args");
if (!commandMessage) {
return null;
}
const theme = getTheme();
return /* @__PURE__ */ React.createElement(Box, { flexDirection: "column", marginTop: addMargin ? 1 : 0, width: "100%" }, /* @__PURE__ */ React.createElement(Text, { color: theme.secondaryText }, "> /", commandMessage, " ", args));
}
export {
UserCommandMessage
};
//# sourceMappingURL=UserCommandMessage.js.map