1 | /**
|
2 | * Copyright (c) Facebook, Inc. and its affiliates.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | *
|
7 | *
|
8 | * @format
|
9 | */
|
10 | // flowlint ambiguous-object-type:error
|
11 | ;
|
12 |
|
13 | var React = require('react');
|
14 |
|
15 | var ReactRelayContext = require('./ReactRelayContext');
|
16 |
|
17 | function ReactRelayFragmentMockRenderer(props) {
|
18 | return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {
|
19 | value: {
|
20 | environment: props.environment
|
21 | }
|
22 | }, props.render());
|
23 | }
|
24 |
|
25 | module.exports = ReactRelayFragmentMockRenderer; |
\ | No newline at end of file |