UNPKG

817 BJavaScriptView Raw
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 * @emails oncall+relay
8 *
9 * @format
10 */
11'use strict';
12
13var React = require('react');
14
15function EntryPointContainer(_ref) {
16 var entryPointReference = _ref.entryPointReference,
17 props = _ref.props;
18 var getComponent = entryPointReference.getComponent,
19 queries = entryPointReference.queries,
20 entryPoints = entryPointReference.entryPoints,
21 extraProps = entryPointReference.extraProps;
22 var Component = getComponent();
23 return React.createElement(Component, {
24 entryPoints: entryPoints,
25 extraProps: extraProps,
26 props: props,
27 queries: queries
28 });
29}
30
31module.exports = EntryPointContainer;
\No newline at end of file