import type {
  AnalyticsAttributeValue,
  AnalyticsUser,
  IAnalytics,
} from "./analytics.interface";

export class NoopAnalytics implements IAnalytics {
  track(
    _event: string,
    _attributes?: Record<string, AnalyticsAttributeValue>,
  ): void {}
  identify(
    _user: AnalyticsUser,
    _attributes?: Record<string, AnalyticsAttributeValue>,
  ): void {}
  pageView(
    _path: string,
    _attributes?: Record<string, AnalyticsAttributeValue>,
  ): void {}
  flush(): Promise<void> {
    return Promise.resolve();
  }
}
