mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 18:42:16 +03:00
24 lines
463 B
JavaScript
24 lines
463 B
JavaScript
import React from 'react'
|
|
import Button from '@material-ui/core/Button'
|
|
|
|
import { Link } from 'react-router-dom'
|
|
import useAuth from '@wasp/auth/useAuth.js'
|
|
import logout from '@wasp/auth/logout.js'
|
|
import Todo from '../Todo.js'
|
|
import '../Main.css'
|
|
|
|
const Main = ({ user }) => {
|
|
return (
|
|
<>
|
|
<Button
|
|
variant='contained' color='primary'
|
|
onClick={logout}>
|
|
Logout
|
|
</Button>
|
|
<Todo />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Main
|