teableio/teable

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

Summary

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

export function useBaseId() {
  const { baseId } = useContext(AnchorContext);
  return baseId;
}