+ {context.map((c, i) => (
+
updateContextPrompt(i, prompt)}
+ remove={() => removeContextPrompt(i)}
+ />
+ ))}
+
+
+ }
+ text={Locale.Context.Add}
+ bordered
+ className={chatStyle["context-prompt-button"]}
+ onClick={() =>
+ addContextPrompt(
+ createMessage({
+ role: "user",
+ content: "",
+ date: "",
+ }),
+ )
+ }
+ />
+
+
+ >
+ );
+}
+
+export function PluginPage() {
+ const navigate = useNavigate();
+
+ const pluginStore = usePluginStore();
+ const chatStore = useChatStore();
+
+ const allPlugins = pluginStore
+ .getAll()
+ .filter((m) => !getLang() || m.lang === getLang());
+
+ const [searchPlugins, setSearchPlugins] = useState