mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-27 02:52:22 +03:00
21 lines
350 B
JavaScript
21 lines
350 B
JavaScript
import React from 'react'
|
|
|
|
import logout from '@wasp/auth/logout.js'
|
|
|
|
import './TopNavbar.css'
|
|
|
|
|
|
const TopNavbar = (props) => {
|
|
const user = props.user
|
|
|
|
return (
|
|
<div className="top-navbar">
|
|
{ user.email }
|
|
|
|
|
<button className="plain" onClick={logout}> logout </button>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default TopNavbar
|