// firebase.js
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';

const firebaseConfig = {
  apiKey: 'AIzaSyBkzz2Yua74Q9YpzGmUPFP94fmJQqNMIiU',
  authDomain: 'nearle-gear.firebaseapp.com',
  projectId: 'nearle-gear',
  storageBucket: 'nearle-gear.appspot.com',
  messagingSenderId: '140444764229',
  appId: '1:140444764229:web:2e60cbb7b4e26b33283b2c'
};

// Initialize Firebase
if (!firebase.apps.length) {
  firebase.initializeApp(firebaseConfig);
}

export default firebase; // Export the initialized firebase object
