UNPKG

@jfvilas/plugin-kwirth-log

Version:

Frontend plugin for viewing real-time Kubernetes logs in Backstage

21 lines (18 loc) 744 B
import React from 'react'; import IconButton from '@material-ui/core/IconButton'; import Snackbar from '@material-ui/core/Snackbar'; import CloseIcon from '@material-ui/icons/Close'; const ShowError = (props) => { return /* @__PURE__ */ React.createElement( Snackbar, { message: `An error has ocurred: ${props.message}`, open: true, autoHideDuration: 3e3, anchorOrigin: { vertical: "top", horizontal: "center" }, action: /* @__PURE__ */ React.createElement(IconButton, { size: "small", "aria-label": "close", color: "inherit", onClick: props.onClose }, /* @__PURE__ */ React.createElement(CloseIcon, { fontSize: "small" })) } ); }; export { ShowError }; //# sourceMappingURL=ShowError.esm.js.map