mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-08-13 12:00:10 +02:00

[web] tear down link sharing split tests GitOrigin-RevId: 449e9f368405aea1500035269428e7ae0c37d8fb
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
import { useEditorContext } from '../context/editor-context'
|
|
|
|
function useViewerPermissions() {
|
|
const { permissionsLevel } = useEditorContext()
|
|
return permissionsLevel === 'readOnly'
|
|
}
|
|
|
|
export default useViewerPermissions
|