// import { get } from '../api';

function initUiActions(_store, _router) {
    function setFilter({ commit }, filter) {
        commit('setFilter', filter);
        localStorage.setItem('filter', filter);
    }

    function setRange({ commit }, range) {
        commit('setRange', range);
        localStorage.setItem('range', range);
    }

    return {
        setFilter,
        setRange,
    };
}

export default initUiActions;
