"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ImportStepError = void 0;
var _designSystem = require("@wix/design-system");
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/ImportButton/ImportStepError.tsx";
function _ImportStepError({
  state
}) {
  const {
    importStatus,
    translate: t
  } = state;
  const errorMessage = importStatus.isError && importStatus.error instanceof Error ? importStatus.error.message : t('cairo.import.genericError');
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    direction: "vertical",
    gap: "SP2",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
    size: "small",
    skin: "error",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 19,
      columnNumber: 7
    }
  }, errorMessage));
}
const ImportStepError = exports.ImportStepError = (0, _mobxReactLite.observer)(_ImportStepError);
//# sourceMappingURL=ImportStepError.js.map