"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mockUseDispatch = exports.mockUseSelector = void 0;
var defaultUseSelectorImpl = function (selector) { return selector({}); };
var getMockedReactRedux = function () {
    return jest.requireMock('react-redux');
};
var mockUseSelector = function (impl) {
    if (impl === void 0) { impl = defaultUseSelectorImpl; }
    var useSelector = getMockedReactRedux().useSelector;
    useSelector.mockImplementation(impl);
    return useSelector;
};
exports.mockUseSelector = mockUseSelector;
var mockUseDispatch = function (dispatch) {
    if (dispatch === void 0) { dispatch = jest.fn(); }
    var useDispatch = getMockedReactRedux().useDispatch;
    useDispatch.mockReturnValue(dispatch);
    return dispatch;
};
exports.mockUseDispatch = mockUseDispatch;
