diff --git a/web/utils/staff-utils.js b/web/utils/staff-utils.js new file mode 100644 index 000000000..8aaeae6cf --- /dev/null +++ b/web/utils/staff-utils.js @@ -0,0 +1,11 @@ +// @flow + +import { useIsCurrentUserStaff } from 'lib/shared/staff-utils.js'; +import { isDev } from 'lib/utils/dev-utils.js'; + +function useStaffCanSee(): boolean { + const isCurrentUserStaff = useIsCurrentUserStaff(); + return isDev || isCurrentUserStaff; +} + +export { useStaffCanSee };