8a48765a46
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
26 lines
728 B
React
26 lines
728 B
React
import React from 'react';
|
|
import { Typography } from '@/components/ui';
|
|
import { Layers } from 'lucide-react';
|
|
import CompactModeToggle from '../../common/ui/CompactModeToggle';
|
|
|
|
const { Text } = Typography;
|
|
|
|
const ModelsDescription = ({ compactMode, setCompactMode, t }) => {
|
|
return (
|
|
<div className='flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full'>
|
|
<div className='flex items-center text-green-500'>
|
|
<Layers size={16} className='mr-2' />
|
|
<Text>{t('模型管理')}</Text>
|
|
</div>
|
|
|
|
<CompactModeToggle
|
|
compactMode={compactMode}
|
|
setCompactMode={setCompactMode}
|
|
t={t}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ModelsDescription;
|