39 lines
963 B
JavaScript
39 lines
963 B
JavaScript
import { createSelector } from "reselect";
|
|
|
|
const selectApplication = (state) => state.application;
|
|
|
|
export const selectLoading = createSelector(
|
|
[selectApplication],
|
|
(application) => application.loading
|
|
);
|
|
|
|
export const selectBreadcrumbs = createSelector(
|
|
[selectApplication],
|
|
(application) => application.breadcrumbs
|
|
);
|
|
|
|
export const selectRecentItems = createSelector(
|
|
[selectApplication],
|
|
(application) => application.recentItems
|
|
);
|
|
|
|
export const selectScheduleLoad = createSelector(
|
|
[selectApplication],
|
|
(application) => application.scheduleLoad.load
|
|
);
|
|
|
|
export const selectScheduleLoadCalculating = createSelector(
|
|
[selectApplication],
|
|
(application) => application.scheduleLoad.calculating
|
|
);
|
|
|
|
export const selectSelectedHeader = createSelector(
|
|
[selectApplication],
|
|
(application) => application.selectedHeader
|
|
);
|
|
|
|
export const selectJobReadOnly = createSelector(
|
|
[selectApplication],
|
|
(application) => application.jobReadOnly
|
|
);
|