"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = ErrorFallback;

var _lab = require("@material-ui/lab");

var _reactIntl = require("react-intl");

var _jsxRuntime = require("react/jsx-runtime");

function ErrorFallback(_ref) {
  var _error$stack;

  var error = _ref.error;
  console.error((_error$stack = error.stack) !== null && _error$stack !== void 0 ? _error$stack : error);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lab.Alert, {
    severity: "error",
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_lab.AlertTitle, {
      children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
        id: "F7wDPl",
        defaultMessage: [{
          "type": 0,
          "value": "Hupsista! Tapahtui odottamaton virhe."
        }]
      })
    })
  });
}
//# sourceMappingURL=ErrorFallback.cjs.map