import React, { createContext, useContext } from 'react'; import { useAuth } from './useAuth'; type AuthContextType = ReturnType; const AuthContext = createContext(null); export function AuthProvider({ children }: { children: React.ReactNode }) { const auth = useAuth(); return {children}; } export function useAuthContext(): AuthContextType { const ctx = useContext(AuthContext); if (!ctx) throw new Error('useAuthContext must be used within AuthProvider'); return ctx; }