import * as types from './types';

const configSuccess = (config) => ({
  type: types.CONFIG_SET_SUCCESS,
  basename: config.basename,
  base_api_url: config.base_api_url,
});

const setConfig = (config) => configSuccess(config);

export { setConfig };
