diff --git a/src/views/ChatPanel/index.tsx b/src/views/ChatPanel/index.tsx
index 18a4c81..71cc4ce 100644
--- a/src/views/ChatPanel/index.tsx
+++ b/src/views/ChatPanel/index.tsx
@@ -745,6 +745,96 @@ const chatPanel = () => {
);
};
+ const InputContexts = (props: any) => {
+ const { contexts } = props;
+ return (
+ {
+ contexts.map((item: any, index: number) => {
+ const { context } = item;
+ return (
+
+
+
+ {'command' in context ? context.command : context.path}
+
+ {
+ contextsHandlers.remove(index);
+ }}>
+
+
+
+
+
+ {
+ context.content
+ ? {context.content}
+ :
+ No content
+
+ }
+
+
+
+ );
+ })
+ }
+ );
+ };
+
return (
{
}
{contexts && contexts.length > 0 &&
-
- {
- contexts.map(({ context }, index) => {
- return (
-
-
-
- {'command' in context ? context.command : context.path}
-
- {
- contextsHandlers.remove(index);
- }}>
-
-
-
-
-
- {
- context.content
- ? {context.content}
- :
- No content
-
- }
-
-
-
- );
- })
- }
-
+
}