import React, { useState } from 'react'; import { Card, Tabs, Typography, Space, Button, Empty } from 'antd'; import { FileTextOutlined, PartitionOutlined, CopyOutlined, PictureOutlined, BulbOutlined } from '@ant-design/icons'; import MarkdownRenderer from './MarkdownRenderer'; import MindMap from './MindMap'; const { Title, Text } = Typography; const ContentViewer = ({ content, title, emptyMessage = "暂无内容", summaryActions = null, mindmapActions = null }) => { const [activeTab, setActiveTab] = useState('summary'); if (!content) { return ( ); } const items = [ { key: 'summary', label: 智能摘要, children: (
{summaryActions}
) }, { key: 'mindmap', label: 思维导图, children: (
{mindmapActions}
) } ]; return ( ); }; export default ContentViewer;