import { Plus as ActionPlus } from '@/components/common/icons/ActionIcons'; import React from 'react'; import { Tabs, TabPane, Tag } from '@/components/ui'; import { Button } from 'antd'; import { CHANNEL_OPTIONS } from '../../../constants'; import { getChannelIcon, isRoot } from '../../../helpers'; import './channels-tabs.css'; const ChannelsTabs = ({ enableTagMode, activeTypeKey, setActiveTypeKey, channelTypeCounts, availableTypeKeys, loadChannels, activePage, pageSize, idSort, setActivePage, setEditingChannel, setShowEdit, t, }) => { const createButton = isRoot() ? ( } onClick={() => { setEditingChannel({ id: undefined }); setShowEdit(true); }} > {t('创建渠道')} ) : null; if (enableTagMode) { return createButton ? (