Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
role={role}
tabIndex="0"
target={wrapperTarget}
>
{title}
{isExternalLink ? (
<div>
</div>
) : null}
)}
onClick={handleClick}
onKeyDown={handleKeyDown}
role={role}
tabIndex={tabIndex}
target={wrapperTarget}
>
<div>{icon}</div>
<div>{title}</div>
{isExternalLink && (
<div>
</div>
)}
);
}}
{({ resolvedRoles, metadata }) => {
const styles = stylesheet(this.props, resolvedRoles);
const size =
metadata.densityId === "medium-density"
? iconSizes.PX_24
: iconSizes.PX_16;
return (
{title}
{this._renderExternalLinkIcon(styles, size)}
);
}}