const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/plus/salesSdk/demo/components/ActionLog.tsx
/**
* Action 日志卡片：保留原 SalesSdkDemoContent 的 Last Action 风格，
* 但改为支持多条历史（最新在底部）。step runner 的「单次执行 / 一键执行」可以把
* 关键节点的反馈塞进这个面板，避免页面上各处散落消息。
*/
const ActionLog = ({ entries, title = "Action Log" }) => {
	if (!entries.length) return null;
	const last = entries[entries.length - 1];
	return /* @__PURE__ */ react.default.createElement("section", { className: `sales-sdk-demo__panel sales-sdk-demo__panel--${last.status}` }, /* @__PURE__ */ react.default.createElement("h3", null, title), /* @__PURE__ */ react.default.createElement("div", { className: "sales-sdk-demo__action-log" }, entries.map((entry, index) => /* @__PURE__ */ react.default.createElement("pre", {
		key: index,
		className: `sales-sdk-demo__action-entry sales-sdk-demo__action-entry--${entry.status}`
	}, entry.message))));
};
//#endregion
exports.ActionLog = ActionLog;
