import { createContext, useCallback, useContext, useMemo, useState } from 'react'; const AuthContext = createContext(null); export function AuthProvider({ children }) { return {children}; } export function useAuth() { const ctx = useContext(AuthContext); if (!ctx) { throw new Error('useAuth must be used within an AuthProvider'); } return ctx; }