import type { MenuTheme } from 'antd'; import type { FC } from 'react'; import { AlertFilled, AreaChartOutlined, HomeFilled, VideoCameraFilled } from '@ant-design/icons'; import { Button, Layout, Menu, theme, Typography } from 'antd'; import { useState } from 'react'; const { Content, Footer, Header, Sider } = Layout; const { Title } = Typography; const App: FC = () => { const { token: { colorBgContainer } } = theme.useToken(); const [menuTheme] = useState('light'); const [count, setCount] = useState(0); return (
网络设备管理平台
, theme: menuTheme, }, { label: '实时设备状态', key: 'device', icon: , theme: menuTheme, }, { label: '设备告警记录', key: 'alarm', icon: , theme: menuTheme, }, { key: 'statistics', // analysis icon: , theme: menuTheme, }, ]} > {/* 内容区域 */}
Content
Content
Content
Content
Content
Bottom
); }; export default App;