import React from 'react' import logo from '../../logo.svg'; import noAva from '../../images/noAva.png' import { Link } from 'react-router-dom'; import { CFieldSearch } from './Search'; import { connect } from 'react-redux'; import { actionAuthLogout, actionProfilData } from '../../actions'; import { backURL } from '../../helpers'; import Layout, { Header } from 'antd/lib/layout/layout'; import { Avatar, Col, Menu, Popover, Row } from 'antd'; import { UserOutlined, CompassOutlined, SettingOutlined, HomeOutlined, ImportOutlined, MessageOutlined, PlusCircleOutlined } from '@ant-design/icons/lib/icons'; const UserNav = ({ id }) => { return
} export const UserAvatar = ({ avatarSize, avatar }) => { return ( <> : } /> ) } const ProfileDropMenu = ( {myID, onLogOut }) => My Profile Settings const CProfileDropMenu = connect(null, { onLogOut: actionAuthLogout })(ProfileDropMenu) const UserNavIcon = ({ userData: { _id, avatar, login } }) => } trigger={'click'}> <> const CUserNav = connect(state => ({ id: state.auth?.payload.sub.id || {} }))(UserNav) const CUserNavIcon = connect(state => ({ userData: state.promise?.aboutMe?.payload || {} }))(UserNavIcon) const Logo = () => logo const HeaderComponent = () =>
export default HeaderComponent