function useDataContext() {
  const context = useContext(DataContext);
  if (context === undefined) {
    throw new Error('useDataContext must be used within DataProvider');
  }
  return context;
}
// This intentionally avoids exporting DataContext and provides just one way to provide the context value and one way to consume it
This intentionally avoids exporting DataContext and provides just one way to provide the context value and one way to consume it
This intentionally avoids exporting DataContext and provides just one way to provide the context value and one way to consume it
function useDataContext() {
  const context = useContext(DataContext);
  if (context === undefined) {
    throw new Error('useDataContext must be used within DataProvider');
  }
  return context;
}
function useDataContext ( ) { const context = useContext ( DataContext ) ; if ( context === undefined ) { throw new Error ( 'useDataContext must be used within DataProvider' ) ; } return context ; }
This intentionally avoids exporting DataContext and provides just one way to provide the context value and one way to consume it
This intentionally avoids exporting DataContext and provides just one way to provide the context value and one way to consume it