-
- {isLogin ? (
- {`${data?.data?.user?.firstName || ''} ${data?.data?.user?.lastName || ''}`}
- ) : (
- ورود | ثبت نام
- )}
-
+ {typeof window !== 'undefined' && (
+ (() => {
+ const currentUrl = window.location.href
+ const profileLink = isLogin ? `${CONSOLE_URL}/profile` : `${LOGIN_URL}?redirect=${encodeURIComponent(currentUrl)}`
+ return (
+