Changeset View
Changeset View
Standalone View
Standalone View
native/utils/staff-utils.js
// @flow | // @flow | ||||
import { isStaff } from 'lib/shared/user-utils.js'; | import { isStaff } from 'lib/shared/staff-utils.js'; | ||||
import { useSelector } from '../redux/redux-utils.js'; | import { useSelector } from '../redux/redux-utils.js'; | ||||
const isStaffRelease = false; | const isStaffRelease = false; | ||||
function useIsCurrentUserStaff(): boolean { | function useIsCurrentUserStaff(): boolean { | ||||
const isCurrentUserStaff = useSelector(state => | const isCurrentUserStaff = useSelector(state => | ||||
state.currentUserInfo?.id ? isStaff(state.currentUserInfo.id) : false, | state.currentUserInfo?.id ? isStaff(state.currentUserInfo.id) : false, | ||||
Show All 10 Lines |