import { markdownTheme, theme } from "../theme.js";
import { Container, Markdown, Spacer } from "@earendil-works/pi-tui";
//#region src/tui/components/assistant-message.ts
var AssistantMessageComponent = class extends Container {
	body;
	constructor(text) {
		super();
		this.body = new Markdown(text, 0, 0, markdownTheme, { color: (line) => theme.assistantText(line) });
		this.addChild(new Spacer(1));
		this.addChild(this.body);
	}
	setText(text) {
		this.body.setText(text);
	}
};
//#endregion
export { AssistantMessageComponent };

//# sourceMappingURL=assistant-message.js.map