-
Notifications
You must be signed in to change notification settings - Fork 11
/
Asterisk.js
32 lines (25 loc) · 844 Bytes
/
Asterisk.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactFontawesome = require("@fortawesome/react-fontawesome");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Asterisk = function Asterisk(_ref) {
var size = _ref.size,
message = _ref.message;
return _react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
icon: "asterisk",
title: message || 'Validation Error',
className: "has-text-danger",
size: size || '1x'
});
};
Asterisk.propTypes = {
size: _propTypes.default.string,
message: _propTypes.default.string
};
var _default = Asterisk;
exports.default = _default;