"use client"; import Button from '@/components/button/PrimaryButton'; // import { useProfile } from '@/hooks/auth/useProfile'; // import { useAuthStore } from '@/zustand/authStore'; import { ArrowLeft, Calendar2, CallCalling, Profile } from 'iconsax-react'; import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; import React from 'react' import { useGetProfile } from './hooks/userProfileData'; import { glassSurfaceCard } from '@/lib/styles/glassSurface'; type Props = object function ProfileIndex({ }: Props) { const router = useRouter(); const { data, isPending } = useGetProfile(); const formatDate = (dateString: string): string => { const date = new Date(dateString); return date.toLocaleDateString('fa-IR', { year: 'numeric', month: 'numeric', day: 'numeric' }); }; const userData = data?.data; const fullName = userData ? `${userData.firstName} ${userData.lastName}` : ''; const genderText = userData?.gender ? 'آقا' : 'خانوم'; return (