mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 05:38:52 +00:00
16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
class CardAlert extends React.Component {
|
|
render() {
|
|
return this.props.show ? <div className="card-alert alert alert-danger mb-0">{this.props.message}</div> : '';
|
|
}
|
|
}
|
|
|
|
CardAlert.propTypes = {
|
|
show: PropTypes.bool,
|
|
message: PropTypes.string
|
|
};
|
|
|
|
export default CardAlert;
|