import React from 'react'; import { useAuth0 } from '@auth0/auth0-react'; import { Typography } from 'antd'; import { Button } from 'antd'; import { UserCard } from '../user-card'; const { Title } = Typography; export function Auth(): JSX.Element { const { loginWithPopup, user, isLoading } = useAuth0(); return (
{!user && (
Unauthenticated{' '} <Button onClick={loginWithPopup}>Log In using Auth0</Button>{' '}
)} {!!user && Hello! Welcome to masa tools! } {(!!user || isLoading) && }
); } export interface Props {}