text: import React from 'react';
  import PropTypes from 'prop-types';
  function OverlayError(props) {
    return /* @__PURE__ */ React.createElement(
      'div',
      {
        ref: props.forwardedRef,
        style: {
          display: 'table',
          width: '100%',
          height: '100%',
          backgroundColor: props.theme.palette.background.paper,
          opacity: 0.7
        }
      },
      /* @__PURE__ */ React.createElement(
        'div',
        {
          style: {
            display: 'table-cell',
            width: '100%',
            height: '100%',
            verticalAlign: 'middle',
            textAlign: 'center'
          }
        },
        /* @__PURE__ */ React.createElement('span', null, props.error.message),
        ' ',
        /* @__PURE__ */ React.createElement(props.icon, {
          onClick: props.retry,
          style: { cursor: 'pointer', position: 'relative', top: 5 }
        })
      )
    );
  }
  OverlayError.propTypes = {
    error: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
    retry: PropTypes.func,
    theme: PropTypes.any,
    icon: PropTypes.any
  };
  var OverlayError_default = React.forwardRef(function OverlayErrorRef(
    props,
    ref
  ) {
    return /* @__PURE__ */ React.createElement(OverlayError, {
      ...props,
      forwardedRef: ref
    });
  });
  export { OverlayError_default as default };
  