import React from 'react'; import { LaptopOutlined, NotificationOutlined, UserOutlined } from '@ant-design/icons'; import type { MenuProps } from 'antd'; import { Breadcrumb, ConfigProvider, Layout, Menu, theme } from 'antd'; const { Header, Content, Sider } = Layout; const items2: MenuProps['items'] = [UserOutlined, LaptopOutlined, NotificationOutlined].map( (icon, index) => { const key = String(index + 1); return { key: `sub${key}`, icon: React.createElement(icon), label: `subnav ${key}`, children: new Array(4).fill(null).map((_, j) => { const subKey = index * 4 + j + 1; return { key: subKey, label: `option${subKey}`, }; }), }; }, ); const App: React.FC = () => { const { token: { colorBgContainer, colorBgLayout, borderRadiusLG }, } = theme.useToken(); return (
Ant Design
Home List App Content ); }; export default App;