"use strict"; import React from "react"; import { connect } from "react-redux"; import { Nav, Avatar, Dropdown } from "@douyinfe/semi-ui"; import "./index.less"; const Header = (props) => { const { dispatch, history, user, actions, socket ,headerItems,tochange} = props; return ( <>
} > } /> ); }; function mapStateToProps (state) { const { global, auth, webSocket } = state; return { actions: global.actions, user: auth.user, socket: webSocket.socket, }; } export default connect(mapStateToProps)(Header);