teableio/teable

View on GitHub
packages/sdk/src/hooks/use-base-permission.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useContext } from 'react';
import { BaseContext } from '../context';

export const useBasePermission = () => {
  const { permission } = useContext(BaseContext);

  return permission;
};