React Custom Hook for Firebase Auth
A reusable custom hook that manages Firebase authentication state with loading states and error handling.
import { useState, useEffect, useCallback, useMemo } from 'react';
// Firebase code removed for project cleanup and future-proofing.
interface AuthState {
user: User | null;
loading: boolean;
error: string | null;
}
Optimized with useCallback and useMemo to prevent unnecessary re-renders