'use strict';

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

var _button = require('choerodon-hap-ui/lib/button');

var _button2 = _interopRequireDefault(_button);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

require('choerodon-hap-ui/lib/button/style');

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouterDom = require('react-router-dom');

require('./style/403.scss');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var NoAccess = function (_Component) {
  (0, _inherits3['default'])(NoAccess, _Component);

  function NoAccess() {
    (0, _classCallCheck3['default'])(this, NoAccess);
    return (0, _possibleConstructorReturn3['default'])(this, (NoAccess.__proto__ || Object.getPrototypeOf(NoAccess)).apply(this, arguments));
  }

  (0, _createClass3['default'])(NoAccess, [{
    key: 'render',
    value: function render() {
      return _react2['default'].createElement(
        'div',
        { className: 'c7n-403-page' },
        _react2['default'].createElement('div', { className: 'c7n-403-page-banner' }),
        _react2['default'].createElement(
          'div',
          { className: 'c7n-403-page-banner-text' },
          _react2['default'].createElement(
            'span',
            null,
            '\u62B1\u6B49 \uFF0C\u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\uFF01'
          ),
          _react2['default'].createElement(
            _reactRouterDom.Link,
            { to: '/' },
            _react2['default'].createElement(
              _button2['default'],
              { color: 'blue' },
              '\u8FD4\u56DE\u9996\u9875'
            )
          )
        )
      );
    }
  }]);
  return NoAccess;
}(_react.Component);

exports['default'] = NoAccess;