'use client'; import { useAccount } from "@/lib/providers/account-provider"; import { getDisplayNameHelper, getInitialsHelper } from "@/lib/utils/account-utils"; const ProfilePersonDetailCard = () => { const { data, error, isLoading } = useAccount(); if (isLoading) { return (

در حال بارگذاری...

); } if (error) { return (

{error}

); } if (!data) { return (

اطلاعات پروفایل یافت نشد

); } const displayName = getDisplayNameHelper(data); const initials = getInitialsHelper(data); return (
{data.avatar ? ( {displayName} ) : ( {initials} )}

{displayName}

{data.phone_number && (

{data.phone_number}

)}
); }; export default ProfilePersonDetailCard;