{"version":3,"file":"useDataTable.cjs","sources":["../../../../components/data-table/hooks/useDataTable.tsx"],"sourcesContent":["import { useContext } from 'react';\n\nimport { TableContext } from '../context';\n\n/**\n * @deprecated Use `DataView` instead. DataTable is deprecated and will not\n * receive new features.\n */\nexport const useDataTable = () => {\n  const ctx = useContext(TableContext);\n  if (ctx === null) {\n    throw new Error('useDataTable must be used inside of a DataTable.Provider');\n  }\n\n  return ctx;\n};\n"],"names":["useContext","TableContext"],"mappings":";;;;;AAIA;;;AAGG;AACI,MAAM,YAAY,GAAG,MAAK;AAC/B,IAAA,MAAM,GAAG,GAAGA,gBAAU,CAACC,oBAAY,CAAC,CAAC;AACrC,IAAA,IAAI,GAAG,KAAK,IAAI,EAAE;AAChB,QAAA,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;KAC7E;AAED,IAAA,OAAO,GAAG,CAAC;AACb;;;;"}