const components = { list: (data = {}) => async (dispatch) => await dispatch({ type: "components/list", data }), activeComponent: (data = {}) => async (dispatch) => await dispatch({ type: "components/activeComponent", data }), }; export default components;