mirror of https://github.com/embarklabs/embark.git
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;
|