box-ui-elements-mlh
Version:
27 lines (25 loc) • 1 kB
JavaScript
/**
*
* @file Preview loading and error UI wrapper
* @author Box
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import Button from '../../components/button/Button';
import { Notification, NotificationConstants } from '../../components/notification';
import messages from '../common/messages';
import './ReloadNotification.scss';
var ReloadNotification = function ReloadNotification(_ref) {
var onClick = _ref.onClick,
onClose = _ref.onClose;
return /*#__PURE__*/React.createElement("span", {
className: "bcpr-notification"
}, /*#__PURE__*/React.createElement(Notification, {
onClose: onClose,
type: NotificationConstants.TYPE_INFO
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.previewUpdate), /*#__PURE__*/React.createElement(Button, {
onClick: onClick
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.reload))));
};
export default ReloadNotification;
//# sourceMappingURL=ReloadNotification.js.map