import React, { useState } from 'react' import { Navbar, Nav } from 'react-bootstrap'; import { handleLogout } from '../utils/auth'; import styled from 'styled-components'; import { BsPeopleCircle } from "react-icons/bs"; import { AiOutlineLogout } from "react-icons/ai"; function Menu() { const [showIcon, setShowIcon] = useState(false); const name = sessionStorage.getItem('name'); console.log('showIcon', showIcon) return (
YDK Messenger {name ? <> : <> }
) } const MenuDiv = styled.div` @media (max-width: 500px) { display: 'none'; } ` export default Menu