chore: no auth no choose show tools

This commit is contained in:
Joel
2026-01-26 11:13:24 +08:00
parent 567634f2a8
commit c75afdb321
3 changed files with 58 additions and 52 deletions

View File

@ -14,19 +14,22 @@ type ToolAuthorizationSectionProps = {
currentProvider?: ToolWithProvider
credentialId?: string
onAuthorizationItemClick?: (id: string) => void
noDivider?: boolean
}
const ToolAuthorizationSection: FC<ToolAuthorizationSectionProps> = ({
currentProvider,
credentialId,
onAuthorizationItemClick,
noDivider,
}) => {
if (!currentProvider || currentProvider.type !== CollectionType.builtIn || !currentProvider.allow_delete)
return null
return (
<>
<Divider className="my-1 w-full" />
{!noDivider
&& <Divider className="my-1 w-full" />}
<div className="px-4 py-2">
<PluginAuthInAgent
pluginPayload={{