import { find } from 'lodash';

export const getSettings = namespace => state => state.settings.collection[namespace];

export const getSetting = (namespace, setting) => state =>
state.settings.collection[namespace][setting];

export const getSettingById = _id => state => find(state.settings.collection, it => it._id === _id);

import { find } from 'lodash';

export const getSettings = namespace => state => state.settings.collection[namespace];
export const getSetting = (namespace, setting) => state =>
  state.settings.collection[namespace][setting];

export const getSettingsById = _id => state =>
  find(state.settings.collection, item => item._id === _id);
export const getSettingById = (_id, setting) => state =>
  find(state.settings.collection, item => item._id === _id)[setting];

Add getSettingById and fix getSettingsById.
Add getSettingById and fix getSettingsById. 

