mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 09:34:28 +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
|