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