import React from "react" ; import { Avatar } from "@webiny/ui/Avatar" ; import { useSecurity } from "@webiny/app-security/hooks/useSecurity" ; const UserImage = ( ) => { const { identity } = useSecurity ( ) ; if ( ! identity ) { return null ; } const { displayName } = identity ; return ( < Avatar data - testid = "logged-in-user-menu-avatar" src = { null } alt = { displayName } fallbackText = { displayName } / > ) ; } ; export default ( ) => { return { type : "dummy" } ; } ;