@cccsaurora/clue-ui 1.3.0-dev.346 → 1.3.0-dev.347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,12 +4,18 @@ import { J as JSONViewer } from "../../../index-BF4c1XBg.js";
|
|
|
4
4
|
import Markdown from "../../display/markdown/index.js";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { u as usePluginStore, c as clueUIPluginStore } from "../../../store-Dslbt6yE.js";
|
|
7
|
-
const Result = ({
|
|
7
|
+
const Result = ({
|
|
8
|
+
result,
|
|
9
|
+
...additionalProps
|
|
10
|
+
}) => {
|
|
8
11
|
const pluginStore = usePluginStore();
|
|
9
12
|
const { t } = useTranslation();
|
|
10
13
|
const plugin = clueUIPluginStore.getPlugin(result.format, "action", result.actionId);
|
|
11
14
|
if (plugin) {
|
|
12
|
-
const component = pluginStore.executeFunction(`${plugin}.actionResult`, {
|
|
15
|
+
const component = pluginStore.executeFunction(`${plugin}.actionResult`, {
|
|
16
|
+
result,
|
|
17
|
+
...additionalProps
|
|
18
|
+
});
|
|
13
19
|
if (component) {
|
|
14
20
|
return component;
|
|
15
21
|
}
|