import { useContext } from 'react';
import { D as DrillDownContext } from './DrillDown.module-C8VOhzaF.js';

function useDrillDownContext() {
  const context = useContext(DrillDownContext);
  if (!context) {
    throw new Error(
      "useDrillDownContext must be used within a DrillDownContextProvider"
    );
  }
  return context;
}

export { useDrillDownContext as u };
//# sourceMappingURL=useDrillDownContext-BssSasVB.js.map
