'use client';

import { useEffect } from 'react';
import { AuthProvider } from '@/lib/auth-context';
import { initTelemetry } from '@/lib/telemetry';
import type { ReactNode } from 'react';

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

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