"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.testMiddleware = void 0;
const testMiddleware = storeAPI => next => action => {
  if (process.env.NODE_ENV === 'development') {
    console.group(`🔍 TestMiddleware - Action: ${action.type}`);
    console.log('📤 Action:', action);
    console.log('📊 Current State:', storeAPI.getState());
  }
  const result = next(action);
  if (process.env.NODE_ENV === 'development') {
    console.log('📥 Result:', result);
    console.log('🔄 New State:', storeAPI.getState());
    console.groupEnd();
  }
  return result;
};
exports.testMiddleware = testMiddleware;
//# sourceMappingURL=testMiddleware.js.map