// utils/debug.js
export const debugLog = (component, action, data) => {
    if (process.env.NODE_ENV === 'development') {
      console.log(`[${component}] ${action}:`, data);
    }
  };
  
  export const debugError = (component, error, context = {}) => {
    console.error(`[${component}] Error:`, {
      message: error.message,
      stack: error.stack,
      ...context
    });
  };