embark-area-51/lib/modules/webserver/backend/contracts/components/card-alert.js

14 lines
253 B
JavaScript

class CardAlert extends React.Component {
render(){
return this.props.show ?
<div className="card-alert alert alert-danger mb-0">
{this.props.message}
</div>
:
'';
}
}