import type { AnalyticsAdapter, AnalyticsParams } from './types';

export function createConsoleAdapter(debug: boolean): AnalyticsAdapter {
  return {
    init() {
      if (debug) console.log('[Analytics] console adapter initialized');
    },
    track(eventName: string, params: AnalyticsParams = {}) {
      if (debug) console.log('[Analytics]', eventName, params);
    },
  };
}
