From b7af1778397c31049ed058dbe5787654514d53ac Mon Sep 17 00:00:00 2001
From: l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com>
Date: Wed, 28 Jan 2026 16:57:26 +0200
Subject: add modal tabs

---
 src/components/header/ProfileOrLogin.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'src/components/header/ProfileOrLogin.tsx')

diff --git a/src/components/header/ProfileOrLogin.tsx b/src/components/header/ProfileOrLogin.tsx
index 38c1eb1..874e0fc 100644
--- a/src/components/header/ProfileOrLogin.tsx
+++ b/src/components/header/ProfileOrLogin.tsx
@@ -4,12 +4,20 @@ import Image from 'next/image';
 import { useUser } from '../../lib/contexts';
 import { Button } from '../ui';
 import Link from 'next/link';
-
+import { Dialog, DialogTrigger } from '../ui/dialog';
+import { AuthDialog } from './AuthDialog';
 export function ProfileOrLogin() {
     const user = useUser();
 
     if (!user) {
-        return <Button className="py-2.5 px-3.75">ВОЙТИ</Button>;
+        return (
+            <Dialog>
+                <DialogTrigger asChild>
+                    <Button className="py-2.5 px-3.75">ВОЙТИ</Button>
+                </DialogTrigger>
+                <AuthDialog />
+            </Dialog>
+        );
     }
 
     return (
-- 
cgit v1.3-3-g829e

