aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/selectors.js
blob: 0c4c02e1f31a3c2a65a99acd9d19b65e246e9df4 (plain)
1
2
3
4
5
6
7
export const getIsAdmin = (state) => state.session.user?.administrator;

export const getUserId = (state) => state.session.user?.id;

export const getDevices = (state) => Object.values(state.devices.items);

export const getPosition = (id) => (state) => state.positions.items[id];