/**
 * Error Reporter Utility
 */

export interface UserAction {
  type: 'click' | 'input' | 'navigation';
  target: string;
  timestamp: number;
}

export const errorReporter = {
  report: (error: Error, context?: Record<string, any>, metadata?: Record<string, any>): string | null => {
    console.error('[ErrorReporter]', error, context, metadata);
    // Could integrate with Sentry, etc.
    return `error-${Date.now()}`;
  },
  getRecentActions: (count: number): UserAction[] => {
    // Placeholder implementation
    return [];
  },
};
