import clsx from 'clsx' import { useTranslation } from 'react-i18next' import { EntityType, WalletProfileHeaderProps } from '@dao-dao/types' import { ProfileImage, ProfileNameDisplayAndEditor } from '../profile' import { StatusCard } from '../StatusCard' export const WalletProfileHeader = ({ editable, profile, entity, mergeProfileType, openMergeProfilesModal, updateProfile, openProfileNftUpdate, className, children, }: WalletProfileHeaderProps) => { const { t } = useTranslation() const canEditProfile = editable && profile && !profile.loading && !!profile.data.uuid && !mergeProfileType const imageUrl = !entity || entity.loading ? !profile || profile.loading ? undefined : profile.data.imageUrl : entity.data.imageUrl const loading = entity?.loading || profile?.loading return (