import { StoreState } from 'store/setup';

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

const getProfile = (state: StoreState): string =>
  state.account && state.account.profile && state.account.profile.data;

const getSelectedResource = (state: StoreState): string =>
  state.account && state.account.selectedResource;

export default {
  getList,
  getProfile,
  getSelectedResource,
};
