import React from 'react' import { Nav } from 'react-bootstrap'; import { handleLogout } from '../utils/auth'; import { BsPeopleCircle } from "react-icons/bs"; import { AiOutlineLogout } from "react-icons/ai"; import "../menu.css"; function Menu(props) { const name = sessionStorage.getItem('name'); return (

YDK Messenger

{name ? <>

{name}님 환영합니다

{'Profile'} handleLogout()} href="/login" style={{color:"#FFFFFF"}}>{'logout'}
handleLogout()}>
: <> }
) } export default Menu