()
| 2 | import {DownOutlined, LogoutOutlined, NotificationOutlined, UserOutlined,} from "@ant-design/icons"; |
| 3 | |
| 4 | const Header = () => { |
| 5 | |
| 6 | const items: MenuProps["items"] = [ |
| 7 | { |
| 8 | key: "logout", |
| 9 | icon: <LogoutOutlined />, |
| 10 | label: "Logout", |
| 11 | }, |
| 12 | ]; |
| 13 | |
| 14 | return ( |
| 15 | <Row |
| 16 | justify="space-between" |
| 17 | style={{ |
| 18 | height: 42, |
| 19 | backgroundColor: "#fff", |
| 20 | padding: "5px 20px", |
| 21 | borderBottom: "1px solid #cecece", |
| 22 | }} |
| 23 | > |
| 24 | |
| 25 | <Col /> |
| 26 | |
| 27 | <Col style={{color: "#666"}}> |
| 28 | <Space size={10}> |
| 29 | <NotificationOutlined style={{fontSize: "14px"}} /> |
| 30 | <Dropdown.Button menu={{items: items}} icon={<DownOutlined />} |
| 31 | overlayClassName="shadow-md" |
| 32 | overlayStyle={{width: 200}} |
| 33 | placement="bottomRight" |
| 34 | type="text"> |
| 35 | <UserOutlined |
| 36 | style={{ |
| 37 | height: "16px", |
| 38 | width: "16px", |
| 39 | fontSize: "14px", |
| 40 | backgroundColor: "#fff", |
| 41 | border: "1px solid #666", |
| 42 | borderRadius: "50%", |
| 43 | }} |
| 44 | /> |
| 45 | <span style={{fontSize: "14px", color: "#666"}}>Hacker#00</span> |
| 46 | </Dropdown.Button> |
| 47 | </Space> |
| 48 | </Col> |
| 49 | </Row> |
| 50 | ); |
| 51 | }; |
| 52 | |
| 53 | export default Header; |
nothing calls this directly
no outgoing calls
no test coverage detected