teableio/teable

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

Summary

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

export function useViews() {
  const viewCtx = useContext(ViewContext);
  return viewCtx?.views;
}