import user from '../materials/user.png' import { actionFullProfilePageUser } from '../redux/thunk' import { Avatar, Button } from 'antd' import { CSearch } from './Search_Users' import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { AddPost } from './NewPost' import React, { useEffect } from 'react' import { CLogout } from './LoginRegisterLogout' export const Feed = () => { return ( <> Feed ) } const Recommendations = () => ( {' '} Explore{' '} ) const User = ({ my_Id, aboutMe: { _id, login, avatar } = {}, onMyPage }) => { useEffect(() => onMyPage(_id), [_id]) return ( {avatar?.url ? ( ) : ( )} ) } const CUser = connect( (state) => ({ my_Id: state.auth?.payload?.sub?.id, aboutMe: state.profileData.aboutMe, }), { onMyPage: actionFullProfilePageUser }, )(User) export const Header = () => { return (
) }