mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
1368ffe55d
* refactor: move data-table hooks/contexts/provider from features to web modules Co-Authored-By: [email protected] <[email protected]> * fix: update broken useColumnResizing import path in DataTable.tsx Co-Authored-By: [email protected] <[email protected]> * fix: update remaining broken import paths for moved hooks Co-Authored-By: [email protected] <[email protected]> * docs: update GUIDE.md import paths and file references for moved modules Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
import { useContext } from "react";
|
|
|
|
import { DataTableContext } from "../DataTableProvider";
|
|
|
|
export function useDataTable() {
|
|
const context = useContext(DataTableContext);
|
|
if (!context) {
|
|
throw new Error("useDataTable must be used within a DataTableProvider");
|
|
}
|
|
return context;
|
|
}
|