import Settings from '../Plugins'; import AgentSettings from '../AgentSettings'; import { useSetIndexOptions } from '~/hooks'; import { useChatContext } from '~/Providers'; export default function PluginsView({ conversation, models, isPreset = false }) { const { showAgentSettings } = useChatContext(); const { setOption, setTools, setAgentOption, checkPluginSelection } = useSetIndexOptions( isPreset ? conversation : null, ); if (!conversation) { return null; } return showAgentSettings ? ( ) : ( ); }