Files
tm_panel/src/hooks/use-firebase.ts
T
AmirReza Jamali b58ea368ec feat(firebase): Add Firebase SDK and initialize Analytics
This commit integrates the Firebase SDK into the application to enable Firebase services, starting with Google Analytics.

Key changes include:
- Added the `firebase` package as a dependency.
- Included Firebase project configuration variables in the production environment file.
- Created a new `firebase.ts` utility to centralize Firebase app initialization.
- Integrated the `FirebaseAnalytics` component into the root layout to enable analytics tracking across the entire application.
2025-10-04 09:28:40 +03:30

13 lines
220 B
TypeScript

"use client";
import { useEffect } from "react";
import { requestForToken } from "../services/firebase";
const useFirebase = () => {
useEffect(() => {
requestForToken();
}, []);
};
export default useFirebase;