// src/views/Community/components/ImportanceLegend.js import React from 'react'; import { Card, Space, Badge } from 'antd'; const ImportanceLegend = () => { const levels = [ { level: 'S', color: '#ff4d4f', description: '重大事件,市场影响深远' }, { level: 'A', color: '#faad14', description: '重要事件,影响较大' }, { level: 'B', color: '#1890ff', description: '普通事件,有一定影响' }, { level: 'C', color: '#52c41a', description: '参考事件,影响有限' } ]; return ( {levels.map(item => (
{item.level}级 {item.description} } />
))}
); }; export default ImportanceLegend;