'use client'; import React from "react"; import styled from "styled-components"; import Link from "next/link"; import { AuthContext } from "./AuthProvider"; import Avvvatars from "avvvatars-react"; import { GearIcon } from "@radix-ui/react-icons"; export const HeaderProfileBox = () => { const auth: any = React.useContext(AuthContext); return ( {!auth.isAuthenticated && ( )} {auth.isAuthenticated && (
{auth.userInfo.user_object.full_name}
)}
); }; const AccountArea = styled.div` display: flex; place-items: center; img { width: 29px; border-radius: 19px; } `; const ProfileArea = styled.div` display: flex; place-items: stretch; place-items: center; `; const UnidentifiedArea = styled.div` display: flex; place-items: stretch; flex-grow: 1; `;