teableio/teable

View on GitHub
packages/sdk/src/context/base/BaseContext.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IGetBasePermissionVo } from '@teable/openapi';
import { createContext } from 'react';
import type { Base } from '../../model';

export const BaseContext = createContext<{
  base?: Base;
  permission?: IGetBasePermissionVo;
}>({});