@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
13 lines (10 loc) • 624 B
JavaScript
import React__default from '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.createElement("button", { "aria-live": 'polite', className: "uim__message-notification", "data-testid": 'message-notification', onClick: onClick }, children));
};
var MessageNotification = React__default.memo(UnMemoizedMessageNotification);
export { MessageNotification };
//# sourceMappingURL=MessageNotification.js.map