mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
/* eslint no-return-assign: 0 */
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const EditorIndicator = ({ invalidMessage }) =>
|
|
(
|
|
<div className="alert alert-danger fade in">
|
|
<strong>{ invalidMessage }</strong>
|
|
</div>
|
|
);
|
|
|
|
EditorIndicator.propTypes = {
|
|
invalidMessage: PropTypes.string
|
|
};
|
|
|
|
EditorIndicator.defaultProps = {
|
|
invalidMessage: null
|
|
};
|
|
export default EditorIndicator;
|