Previous incidents
"use client"; // NextJS 13 requires this. Remove if you are using NextJS 12 or lower
import { useEffect } from "react";
import Script from "next/script";
const FeaturebaseMessenger = () => {
useEffect(() => {
const win = window;
// Initialize Featurebase if it doesn't exist
if (typeof win.Featurebase !== "function") {
win.Featurebase = function () {
(win.Featurebase.q = win.Featurebase.q || []).push(arguments);
};
}
// Boot Featurebase messenger with configuration
win.Featurebase("boot", {
appId: "67324342e290dff3b096d2f2", // required
createdAt: "2025-05-06T12:00:00Z", // optional
theme: “dark”, // "light" or "dark"
language: "en", // short code (e.g. "en", "de", etc.)
// + feel free to add any more custom values about the user here
});
}, []);
return (
<>
{/* Load the Featurebase SDK */}
>
);
};
export default FeaturebaseMessenger;