mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
1a76f693f0
- PostHog: capture_dead_clicks=false to skip dead-clicks-autocapture.js - Drop duplicate reb2b loader (NEXT_PUBLIC_RB2B_ID); the <Script> in app/layout.tsx using NEXT_PUBLIC_REB2B_KEY is the canonical one and matches the website's reb2b key Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
565 B
TypeScript
20 lines
565 B
TypeScript
"use client";
|
|
|
|
import React, { Suspense } from "react";
|
|
import { PostHogProvider } from "@/lib/providers/posthog-provider";
|
|
import { ScarfPixel } from "./scarf-pixel";
|
|
import { useGoogleAnalytics } from "../hooks/use-google-analytics";
|
|
import { ThemeOverride } from "@/components/theme-override";
|
|
|
|
export function ProvidersWrapper({ children }: { children: React.ReactNode }) {
|
|
useGoogleAnalytics();
|
|
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<PostHogProvider>{children}</PostHogProvider>
|
|
<ThemeOverride />
|
|
<ScarfPixel />
|
|
</Suspense>
|
|
);
|
|
}
|