import {useEffect, useState} from "react"; import Login from "./Login"; import Version from "./Version"; import Token from "./Token"; import Logout from "./Logout"; import Account from "./Account"; import {ReactFlowProvider} from "react-flow-renderer"; const Console = () => { const [user, setUser] = useState(); useEffect(() => { const localUser = localStorage.getItem("user") if (localUser) { setUser(JSON.parse(localUser)) console.log('reloaded user', localUser) } }, []); if (!user) { return ( ); } const logout = () => { setUser(null); localStorage.clear(); } return (
ziggy goes to space

zrok

{user.email}

); } export default Console;