- {tokenIsValid ? (
- <>
-
-
- >
- ) : (
-
- )}
-
- );
-};
-
-export default Main;
diff --git a/src/components/layout/ProfileButton.js b/src/components/layout/ProfileButton.js
new file mode 100644
index 0000000..fbf6784
--- /dev/null
+++ b/src/components/layout/ProfileButton.js
@@ -0,0 +1,62 @@
+import React, { useState } from "react";
+import { IconButton, Menu, MenuItem } from "@material-ui/core";
+import AccountCircle from "@material-ui/icons/AccountCircle";
+import { useHistory } from "react-router-dom";
+import { useTuitioClient } from "@flare/tuitio-client-react";
+
+const ProfileButton = () => {
+ const history = useHistory();
+ const { logout } = useTuitioClient();
+
+ const [anchorEl, setAnchorEl] = useState(null);
+ const openUserMenu = Boolean(anchorEl);
+
+ const handleMenu = event => {
+ setAnchorEl(event.currentTarget);
+ };
+
+ const handleClose = () => {
+ setAnchorEl(null);
+ };
+
+ return (
+