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
|