Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} = this.props;
const alert = (
<p>{this.props.text}</p>
{this.props.dismissable && (
<div>
<button type="{buttonTypes.OFF_NEUTRAL}" size="{buttonSizes.SMALL}">
</button></div>
)}
);
if (!visibleTime) {
return alert;
}
return (
{alert}