import { useContext } from 'react';
import { TableContext } from '../TableContext.js';

const useTable = () => {
    const ctx = useContext(TableContext);
    if (ctx === null) {
        throw new Error("useTable must be used inside of a TableContext.Provider");
    }
    return ctx;
};

export { useTable };
//# sourceMappingURL=useTable.js.map
