Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ article, isLoading, error, refetch }) =>
React.createElement(
ContextProviderWithDefaults,
{
value: {
getCookieValue,
makeArticleUrl,
makeTopicUrl,
newskit: enableNewskit,
theme: {
...themeFactory(article.section, article.template),
scale: scale || defaults.theme.scale
},
user: userState
}
},
React.createElement(Article, {
adConfig: mapArticleToAdConfig(article),
analyticsStream,
article,
error,
isLoading,
navigationMode,
onAuthorPress: () => {},
onRelatedArticlePress: () => {},
onTopicPress: () => {},
refetch,
spotAccountId,
: providerData.article;
return React.createElement(
ContextProviderWithDefaults,
{
value: {
getCookieValue,
makeArticleUrl,
makeTopicUrl,
newskit: enableNewskit,
theme: {
...themeFactory(
getSectionNameFromTiles(article),
article.template
),
scale: scale || defaults.theme.scale
},
user: userState
}
},
React.createElement(Article, {
adConfig: mapArticleToAdConfig(article),
analyticsStream,
article,
error,
isLoading,
logoUrl,
navigationMode,
onAuthorPress: () => {},
onRelatedArticlePress: () => {},
onTopicPress: () => {},
refetch,