aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/selectors.js
blob: ddf9dbec17523721705723fde02382bc1bd23806 (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 getItemPosition = (itemId) => (state) => state.positions.items[itemId];