/* * @Author: your name * @Date: 2021-09-03 14:28:27 * @LastEditTime: 2021-10-09 10:42:35 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /MedicalWisdomCheckSys/src/components/RightContent/index.tsx */ import { Space,message } from 'antd'; import React from 'react'; import { useModel } from 'umi'; import Avatar from './AvatarDropdown'; import styles from './index.less'; import NoticeIcon from '@/components/NoticeIcon/NoticeIcon'; export type SiderTheme = 'light' | 'dark'; const Notice = () => { const list:API.NoticeIconItem[] = [ { id: '000000001', avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png', title: '你收到了 14 份新周报', datetime: '2017-08-09', type: 'notification', }, { id: '000000002', avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png', title: '你推荐的 曲妮妮 已通过第三轮面试', datetime: '2017-08-08', type: 'notification', }, ]; return ( { message.info(`${item.title} 被点击了`); }} onClear={(title: string, key: string) => message.info('点击了清空更多')} loading={false} clearText="清空" viewMoreText="查看更多" onViewMore={() => message.info('点击了查看更多')} clearClose > ); }; const GlobalHeaderRight: React.FC = () => { const { initialState } = useModel('@@initialState'); if (!initialState || !initialState.settings) { return null; } const { navTheme, layout } = initialState.settings; let className = styles.right; if ((navTheme === 'dark' && layout === 'top') || layout === 'mix') { className = `${styles.right} ${styles.dark}`; } return ( {/* */} ); }; export default GlobalHeaderRight;