'use client'; /** * AuthContext - 하위호환 re-export 심 * * 실제 구현은 src/stores/authStore.ts (Zustand)로 이동됨. * 기존 import { useAuth } from '@/contexts/AuthContext' 코드가 * 깨지지 않도록 타입과 훅을 re-export. */ import { type ReactNode } from 'react'; import { useAuthStore } from '@/stores/authStore'; // 타입 re-export export type { Tenant, Role, MenuItem, User, UserRole } from '@/stores/authStore'; // AuthProvider: 빈 passthrough (미발견 import 안전망) export function AuthProvider({ children }: { children: ReactNode }) { return <>{children}; } // useAuth: authStore 전체 상태를 반환 (기존 Context 인터페이스 유지) export function useAuth() { return useAuthStore(); }