"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDataTableLocation = exports.useDataTableContext = exports.DataTableLocationProvider = exports.DataTableContextProvider = void 0;
const helpers_1 = require("../../../utils/helpers");
const { Provider: DataTableContextProvider, useContext: useDataTableContext } = (0, helpers_1.createStrictContext)({
    name: "DataTableContext",
    errorMessage: "useDataTableContext must be used within DataTable",
});
exports.DataTableContextProvider = DataTableContextProvider;
exports.useDataTableContext = useDataTableContext;
const { Provider: DataTableLocationProvider, useContext: useDataTableLocation, } = (0, helpers_1.createStrictContext)({
    name: "DataTableLocation",
    errorMessage: "Some component is using table context outside of Thead, Tbody or Tfoot. Please make sure to wrap it in the appropriate component.",
});
exports.DataTableLocationProvider = DataTableLocationProvider;
exports.useDataTableLocation = useDataTableLocation;
//# sourceMappingURL=DataTableRoot.context.js.map