import * as React from 'react';
const DemoContext = /*#__PURE__*/React.createContext(null);
if (process.env.NODE_ENV !== 'production') {
  DemoContext.displayName = 'DemoContext';
}
export function useDemoContext() {
  const context = React.useContext(DemoContext);
  if (!context) {
    throw new Error('useDemoContext must be used within a DemoContext.Provider');
  }
  return context;
}
export default DemoContext;