diff --git a/client/src/components/Navbar.tsx b/client/src/components/Navbar.tsx new file mode 100644 index 0000000..3432b0a --- /dev/null +++ b/client/src/components/Navbar.tsx @@ -0,0 +1,16 @@ +import React from "react"; +import { useAuth0 } from "../authentication/auth0"; + +export const NavBar = () => { + const { isAuthenticated, loginWithRedirect, logout } = useAuth0(); + + return ( +
+ {!isAuthenticated && ( + + )} + + {isAuthenticated && } +
+ ); +};