"use client";

import type { ReactNode } from "react";
import { useEffect } from "react";
import { AuthProvider } from "@/lib/auth";
import { initDiagnostics } from "@/lib/diagnostics";
import { initTelemetry } from "@/lib/telemetry";

export function Providers({ children }: { children: ReactNode }) {
  useEffect(() => {
    initTelemetry();
    initDiagnostics();
  }, []);

  return <AuthProvider>{children}</AuthProvider>;
}
