2022-06-15 01:07:54 -05:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2023-01-02 00:23:55 -06:00
|
|
|
// Copyright (C) 2013 - 2023, The pgAdmin Development Team
|
2022-06-15 01:07:54 -05:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import {DebuggerContext, DebuggerEventsContext} from '../../../pgadmin/tools/debugger/static/js/components/DebuggerComponent';
|
2023-10-23 07:13:17 -05:00
|
|
|
import { withBrowser } from '../genericFunctions';
|
2022-06-15 01:07:54 -05:00
|
|
|
|
2023-10-23 07:13:17 -05:00
|
|
|
function MockDebuggerComponent({value, eventsvalue, children}) {
|
2022-06-15 01:07:54 -05:00
|
|
|
return (
|
2023-10-23 07:13:17 -05:00
|
|
|
<DebuggerContext.Provider value={value}>
|
|
|
|
<DebuggerEventsContext.Provider value={eventsvalue}>
|
|
|
|
{children}
|
|
|
|
</DebuggerEventsContext.Provider>
|
|
|
|
</DebuggerContext.Provider>
|
2022-06-15 01:07:54 -05:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-10-23 07:13:17 -05:00
|
|
|
export default withBrowser(MockDebuggerComponent);
|
|
|
|
|
2022-06-15 01:07:54 -05:00
|
|
|
MockDebuggerComponent.propTypes = {
|
|
|
|
value: PropTypes.any,
|
|
|
|
eventsvalue: PropTypes.any,
|
|
|
|
children: PropTypes.any
|
|
|
|
};
|