+ )}
+
{/* Login Link */}
- {onLoginClick && currentStep !== 'verification' && (
+ {onLoginClick && (
¿Ya tienes una cuenta?
diff --git a/frontend/src/components/layout/Header/Header.tsx b/frontend/src/components/layout/Header/Header.tsx
index e811876f..114ff102 100644
--- a/frontend/src/components/layout/Header/Header.tsx
+++ b/frontend/src/components/layout/Header/Header.tsx
@@ -3,10 +3,12 @@ import { clsx } from 'clsx';
import { useNavigate } from 'react-router-dom';
import { useAuthUser, useIsAuthenticated, useAuthActions } from '../../../stores';
import { useTheme } from '../../../contexts/ThemeContext';
+import { useBakery } from '../../../contexts/BakeryContext';
import { Button } from '../../ui';
import { Avatar } from '../../ui';
import { Badge } from '../../ui';
import { Modal } from '../../ui';
+import { BakerySelector } from '../../ui/BakerySelector/BakerySelector';
import {
Menu,
Search,
@@ -100,6 +102,7 @@ export const Header = forwardRef(({
const isAuthenticated = useIsAuthenticated();
const { logout } = useAuthActions();
const { theme, resolvedTheme, setTheme } = useTheme();
+ const { bakeries, currentBakery, selectBakery } = useBakery();
const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);
const [isSearchFocused, setIsSearchFocused] = useState(false);
@@ -216,7 +219,7 @@ export const Header = forwardRef(({
aria-label="Navegación principal"
>
{/* Left section */}
-
+
{/* Mobile menu button */}
{/* Logo */}
-
+
{logo || (
<>
@@ -237,7 +240,7 @@ export const Header = forwardRef(({
@@ -247,6 +250,40 @@ export const Header = forwardRef(({
)}
+ {/* Bakery Selector - Desktop */}
+ {isAuthenticated && currentBakery && bakeries.length > 0 && (
+
+ {
+ // TODO: Navigate to add bakery page or open modal
+ console.log('Add new bakery');
+ }}
+ size="md"
+ className="min-w-[160px] max-w-[220px] lg:min-w-[200px] lg:max-w-[280px]"
+ />
+
+ )}
+
+ {/* Bakery Selector - Mobile (in title area) */}
+ {isAuthenticated && currentBakery && bakeries.length > 0 && (
+
+ {
+ // TODO: Navigate to add bakery page or open modal
+ console.log('Add new bakery');
+ }}
+ size="sm"
+ className="w-full max-w-none"
+ />
+
+ )}
+
{/* Search */}
{showSearch && isAuthenticated && (