'use client' import React from 'react' import type { FC } from 'react' import { useTranslation } from 'react-i18next' import { useAppContext } from '@/context/app-context' import { RiCloseLine, } from '@remixicon/react' import type { ToolWithProvider } from '../../../workflow/types' import Icon from '@/app/components/plugins/card/base/card-icon' import ActionButton from '@/app/components/base/action-button' import Button from '@/app/components/base/button' // import Toast from '@/app/components/base/toast' import Indicator from '@/app/components/header/indicator' import cn from '@/utils/classnames' type Props = { detail?: ToolWithProvider onUpdate: () => void onHide: () => void } const MCPDetailContent: FC = ({ detail, // onUpdate, onHide, }) => { const { t } = useTranslation() const { isCurrentWorkspaceManager } = useAppContext() if (!detail) return null return ( <>
{detail.name}
{detail.server_url}
{/* */}
{detail.is_team_authorization && ( )} {detail.is_team_authorization && ( )}
TOOL list
) } export default MCPDetailContent