import {
    SET_PARAMS_FROM_URL,
    RESET_PARAMS,
    SET_ACTIVE_MODULE,
    SET_ACTIVE_SUB_MODULE,
    RESET_ACTIVE_SUB_MODULE
} from '../../constants/pageConstants';

export const setParamsFromUrl = (params) => ({
    type: SET_PARAMS_FROM_URL,
    urlParams: params
});

export const resetParamsFromUrl = () => ({
    type: RESET_PARAMS
});

export const setActiveModule = (module) => ({
    type: SET_ACTIVE_MODULE,
    activeModule: module
});

export const setActiveSubModule = (submodule) => ({
    type: SET_ACTIVE_SUB_MODULE,
    activeSubmodule: submodule
});

export const resetActiveSubModule = () => ({
    type: RESET_ACTIVE_SUB_MODULE
});
