mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
d397a1c54d
[web] tear down link sharing split tests GitOrigin-RevId: 449e9f368405aea1500035269428e7ae0c37d8fb
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import { useEditorContext } from '../context/editor-context'
|
|
|
|
function useViewerPermissions() {
|
|
const { permissionsLevel } = useEditorContext()
|
|
return permissionsLevel === 'readOnly'
|
|
}
|
|
|
|
export default useViewerPermissions
|