b58ea368ec
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.
12 lines
256 B
TypeScript
12 lines
256 B
TypeScript
"use client";
|
|
|
|
import useFirebase from "@/hooks/use-firebase";
|
|
import type { PropsWithChildren } from "react";
|
|
|
|
const FirebaseProvider = ({ children }: PropsWithChildren) => {
|
|
useFirebase();
|
|
return <>{children}</>;
|
|
};
|
|
|
|
export default FirebaseProvider;
|