import { StoreState } from 'store/rootReducer';

const getList = (state: StoreState): string => state.messagerie && state.messagerie.list;

const getNumberMessages = (state: StoreState): string =>
  state.messagerie && state.messagerie.messagesNumber;

export default {
  getList,
  getNumberMessages,
};
