import React from 'react'; import { UploadOutlined, UserOutlined, VideoCameraOutlined } from '@ant-design/icons'; import { Layout, Menu, theme } from 'antd'; const { Header, Content, Footer, Sider } = Layout; const items = [UserOutlined, VideoCameraOutlined, UploadOutlined, UserOutlined].map( (icon, index) => ({ key: String(index + 1), icon: React.createElement(icon), label: `nav ${index + 1}`, }), ); const App: React.FC = () => { const { token: { colorBgContainer, borderRadiusLG }, } = theme.useToken(); return ( { console.log(broken); }} onCollapse={(collapsed, type) => { console.log(collapsed, type); }} >
content
); }; export default App;