import { useContext } from 'react';
import { D as DrillDownContext } from './DrillDown.module-D1Bf9_yP.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-iUvoTget.js.map
