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

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