Spaces:
Sleeping
Sleeping
| 'use client'; | |
| import { initializeApp, getApp, getApps, type FirebaseOptions } from 'firebase/app'; | |
| import { getAuth } from 'firebase/auth'; | |
| import { getDatabase } from 'firebase/database'; | |
| const firebaseConfig: FirebaseOptions = { | |
| apiKey: "AIzaSyAOG4b86lnMDidl7UcbUEEyPEinyS4xD_g", | |
| authDomain: "hhjij-be5c6.firebaseapp.com", | |
| databaseURL: "https://hhjij-be5c6-default-rtdb.firebaseio.com", | |
| projectId: "hhjij-be5c6", | |
| storageBucket: "hhjij-be5c6.appspot.com", | |
| messagingSenderId: "56446735767", | |
| appId: "1:56446735767:web:6fb56e6476489cba6760d2", | |
| measurementId: "G-103FCK8LKB" | |
| }; | |
| // Initialize Firebase | |
| const app = !getApps().length ? initializeApp(firebaseConfig) : getApp(); | |
| const auth = getAuth(app); | |
| const database = getDatabase(app); | |
| export { auth, database }; | |