Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const allProps = {
...props,
themeName
}
return (
<div>
{allProps.iconId && icons[allProps.iconId] && (
<div>{icons[allProps.iconId]()}</div>
)}
<div>
<h1>{allProps.text}</h1>
</div>
<div>
<h2>Error code: {allProps.code}</h2>
</div>
{allProps.href && <button href="{allProps.href}">Contact support</button>}
{allProps.action && }
</div>
)
}
ErrorPage.propTypes = {