import { initializeApp } from 'firebase/app';
import { initializeFirestore, persistentLocalCache, persistentMultipleTabManager } from "firebase/firestore";

const firebaseConfig = {
  apiKey: "AIzaSyDF_fbk7tDY9tNxUiOwwi--2nYZWZygMGk",
  appId: "1:1006580076785:web:e2a0736d60a78e02b15950",
  authDomain: "flowy-dev-440017.firebaseapp.com",
  messagingSenderId: "1006580076785",
  projectId: "flowy-dev-440017",
  storageBucket: "flowy-dev-440017.firebasestorage.app",
};

export const firebaseApp = initializeApp(firebaseConfig);

export const firestoreDb = initializeFirestore(firebaseApp,
  {
    localCache:
      persistentLocalCache(/*settings*/{ tabManager: persistentMultipleTabManager() })
  });
