Files
monkey-ai-web/src/pages/Organization/OrgMyCapabilities.jsx
T
zhanjunhao 2aa9d73325 chore(repo): 移除重复版权文件头并纳入共享单测
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
2026-11-20 11:23:49 +08:00

40 lines
1.1 KiB
React
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React from 'react';
import { useTranslation } from 'react-i18next';
import OrgSubpageTabs from './components/OrgSubpageTabs';
import OrgMySkills from './OrgMySkills';
import OrgMyConnectors from './OrgMyConnectors';
/**
* 我的 AI 能力:成员自助视图的合并入口(我的技能 + 业务系统授权)。
*
* 两个页签都是 isMemberActor 守卫的只读/自助页,各自受不同的企业功能位
* (skill_market / connector)与站点级模块开关控制,由 showSkills /
* showConnectors 决定可见性。旧路由 /org/my-skills、/org/my-connectors
* 重定向到对应页签。
*/
const OrgMyCapabilities = ({
orgId,
showSkills = true,
showConnectors = true,
}) => {
const { t } = useTranslation();
return (
<OrgSubpageTabs
tabs={[
showSkills && {
key: 'skills',
label: t('我的技能'),
node: <OrgMySkills orgId={orgId} />,
},
showConnectors && {
key: 'connectors',
label: t('业务系统授权'),
node: <OrgMyConnectors orgId={orgId} />,
},
]}
/>
);
};
export default OrgMyCapabilities;