UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

21 lines (14 loc) 919 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); var UnMemoizedMessageNotification = function (props) { var children = props.children, onClick = props.onClick, _a = props.showNotification, showNotification = _a === void 0 ? true : _a; if (!showNotification) return null; return (React__default["default"].createElement("button", { "aria-live": 'polite', className: "uim__message-notification", "data-testid": 'message-notification', onClick: onClick }, children)); }; var MessageNotification = React__default["default"].memo(UnMemoizedMessageNotification); exports.MessageNotification = MessageNotification; //# sourceMappingURL=MessageNotification.js.map