import React from 'react'; import { DownOutlined, MailOutlined } from '@ant-design/icons'; import type { MenuProps } from 'antd'; import { Flex, Menu, Space } from 'antd'; type MenuItem = Required['items'][number]; const items1: MenuItem[] = [ { key: 'sub1', icon: , label: 'Navigation One', children: [ { key: '1', label: ( Option 1 ), }, { key: '2', label: 'Option 2', extra: '⌘P', }, ], }, ]; const items2: MenuItem[] = [ { key: '1', label: 'Users', extra: '⌘U' }, { key: '2', label: 'Profile', extra: '⌘P' }, ]; const App: React.FC = () => ( ); export default App;