Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
curStyles.push(child)
}
})
}
return (
{children}
{head}
{amphtml && (
<>
{isDirtyAmp && }
{/* https://www.ampproject.org/docs/fundamentals/optimize_amp#optimize-the-amp-runtime-loading */}
{/* Add custom styles before AMP styles to prevent accidental overrides */}
{styles && (
<style> style.props.dangerouslySetInnerHTML.__html)
.join('')
.replace(/\/\*# sourceMappingURL=.*\*\//g, '')</style>