import React from 'react'; import { AppstoreOutlined, BarChartOutlined, CloudOutlined, ShopOutlined, TeamOutlined, UploadOutlined, UserOutlined, VideoCameraOutlined, } from '@ant-design/icons'; import type { MenuProps } from 'antd'; import { Layout, Menu, theme } from 'antd'; const { Header, Content, Footer, Sider } = Layout; const siderStyle: React.CSSProperties = { overflow: 'auto', height: '100vh', position: 'fixed', insetInlineStart: 0, top: 0, bottom: 0, scrollbarWidth: 'thin', scrollbarColor: 'unset', }; const items: MenuProps['items'] = [ UserOutlined, VideoCameraOutlined, UploadOutlined, BarChartOutlined, CloudOutlined, AppstoreOutlined, TeamOutlined, ShopOutlined, ].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 (

long content

{ // indicates very long content Array.from({ length: 100 }, (_, index) => ( {index % 20 === 0 && index ? 'more' : '...'}
)) }
); }; export default App;