Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable import/no-unresolved */
const React = require("react");
const { ApolloProvider } = require("react-apollo");
const { HelmetProvider } = require("react-helmet-async");
const { AuthorProfileProvider } = require("@times-components/provider/rnw");
const {
ContextProviderWithDefaults
} = require("@times-components/context/rnw");
const { StickyProvider } = require("@times-components/sticky/rnw");
const AuthorProfile = require("@times-components/author-profile/rnw").default;
module.exports = (client, analyticsStream, data, helmetContext) => {
const {
authorSlug,
debounceTimeMs,
makeArticleUrl,
makeTopicUrl,
mapProfileToAdConfig,
page,
pageSize
} = data;
return React.createElement(
StickyProvider,
{},
React.createElement(
/* eslint-disable import/no-unresolved */
const React = require("react");
const { ApolloProvider } = require("react-apollo");
const { HelmetProvider } = require("react-helmet-async");
const { AuthorProfileProvider } = require("@times-components/provider/rnw");
const {
ContextProviderWithDefaults
} = require("@times-components/context/rnw");
const AuthorProfile = require("@times-components/author-profile/rnw").default;
module.exports = (client, analyticsStream, data, helmetContext) => {
const {
authorSlug,
debounceTimeMs,
makeArticleUrl,
makeTopicUrl,
mapProfileToAdConfig,
page,
pageSize
} = data;
return React.createElement(
HelmetProvider,
{ context: helmetContext },
React.createElement(