"use client"; import React, { createContext, useContext } from "react"; interface AuthContextValue { logout: () => void; } const AuthContext = createContext(undefined); export function AuthProvider({ children }: { children: React.ReactNode }) { const logout = () => { // No-op since there's no authentication needed. // Kept for compatibility with components that reference it. window.location.reload(); }; return ( {children} ); } export function useAuth() { const ctx = useContext(AuthContext); if (!ctx) throw new Error("useAuth must be used within AuthProvider"); return ctx; }