import React from 'react' import { Link } from 'react-router-dom' import useAuth from '@wasp/auth/useAuth.js' import logout from '@wasp/auth/logout.js' const MainPage = () => { const { data: user } = useAuth() return (
) } const UserWidget = (props) => { if (props.user) { // TODO: Make links lead somewhere. return (
Settings { props.user.username }
) } else { return (
Sign in Sign up
) } } export default MainPage