feat: artifacts style

This commit is contained in:
Dogtiti
2024-07-25 23:29:29 +08:00
parent 51e8f0440d
commit c27ef6ffbf
4 changed files with 52 additions and 30 deletions

View File

@@ -641,12 +641,13 @@ export function ChatActions(props: {
]}
onClose={() => setShowPluginSelector(false)}
onSelection={(s) => {
if (s.length === 0) return;
const plugin = s[0];
chatStore.updateCurrentSession((session) => {
session.mask.plugin = s;
});
showToast(plugin);
if (plugin) {
showToast(plugin);
}
}}
/>
)}