import { GetterTree } from 'vuex';
import { CaptacionState } from './CaptacionState';

export const getters: GetterTree<CaptacionState, unknown> = {
  id: (state) => state.data?.ID_CAPTACION ?? null,
  data: (state) => state.data,
  props: (state) => state.data?.PROPS || [],
  token: (state) => state.token,
  loading: (state) => state.loading,
  notifications: (state) => state.notifications.data,
  loadingNotifications: (state) => state.notifications.loading,
  documentFilter: (state) => state.documentFilter,
  bankAccounts: (state) => state.bankAccounts,
  stats: (state) => state.stats,
  loadingStats: (state) => state.loadingStats,
  loadingItems: (state) => state.loadingItems,
};
