diff --git a/src/features/AgentSetting/AgentPlugin/MarketList.tsx b/src/features/AgentSetting/AgentPlugin/MarketList.tsx index 4a3ac0fe..11ae4006 100644 --- a/src/features/AgentSetting/AgentPlugin/MarketList.tsx +++ b/src/features/AgentSetting/AgentPlugin/MarketList.tsx @@ -1,8 +1,8 @@ import { Avatar, Form, Icon, Tooltip } from '@lobehub/ui'; -import { Button, Skeleton, Switch, Tag } from 'antd'; +import { Button, Skeleton, Space, Switch, Tag } from 'antd'; import { createStyles } from 'antd-style'; import isEqual from 'fast-deep-equal'; -import { LucideBlocks, LucideStore, LucideTrash2 } from 'lucide-react'; +import { LucideBlocks, LucideSettings, LucideStore, LucideTrash2 } from 'lucide-react'; import { memo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Flexbox } from 'react-layout-kit'; @@ -13,6 +13,7 @@ import { pluginHelpers, pluginSelectors, usePluginStore } from '@/store/plugin'; import { useStore } from '../store'; import LocalPluginItem from './LocalPluginItem'; +import MarketSettingModal from './MarketSettingModal'; const useStyles = createStyles(({ css }) => ({ avatar: css` @@ -36,6 +37,7 @@ const MarketList = memo(() => { const { styles } = useStyles(); const [showModal, setModal] = useState(false); + const [showSettings, setShowSettings] = useState(false); const [userEnabledPlugins, hasPlugin, toggleAgentPlugin] = useStore((s) => [ s.config.plugins || [], @@ -173,12 +175,13 @@ const MarketList = memo(() => { onValueChange={updateNewDevPlugin} open={showModal} /> +
+ {hasDeprecated ? ( + /> ) : null} - - - + + + +