teableio/teable

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

Summary

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

export function useTableId() {
  const { tableId } = useContext(AnchorContext);
  return tableId;
}