// firebase-config.js
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getAuth } from "firebase/auth";

// Suas configurações do Firebase
const firebaseConfig = {
    apiKey: "AIzaSyAL9b1mnLPRWAySi6jtKAsDWKiT7kaWBGE",
    authDomain: "chatroom-34782.firebaseapp.com",
    projectId: "chatroom-34782",
    storageBucket: "chatroom-34782.appspot.com",
    messagingSenderId: "925968388566",
    appId: "1:925968388566:web:821ba9deb19662dd629477",
    measurementId: "G-2YSTK39GBT"
};

// Inicialize o Firebase
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = getAuth(app);

export { db, auth };
