[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
|