pgadmin4/web/regression/javascript/debugger/MockDebuggerComponent.jsx
2024-01-01 14:13:48 +05:30

33 lines
977 B
JavaScript

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
// 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';
import { withBrowser } from '../genericFunctions';
function MockDebuggerComponent({value, eventsvalue, children}) {
return (
<DebuggerContext.Provider value={value}>
<DebuggerEventsContext.Provider value={eventsvalue}>
{children}
</DebuggerEventsContext.Provider>
</DebuggerContext.Provider>
);
}
export default withBrowser(MockDebuggerComponent);
MockDebuggerComponent.propTypes = {
value: PropTypes.any,
eventsvalue: PropTypes.any,
children: PropTypes.any
};