"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.NoAccessPage = void 0;
var _react = _interopRequireDefault(require("react"));
var _i18nReact = require("@kbn/i18n-react");
var _no_data_layout = require("./components/no_data_layout");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const NoAccessPage = (0, _i18nReact.injectI18n)(({
  intl
}) => /*#__PURE__*/_react.default.createElement(_no_data_layout.NoDataLayout, {
  title: intl.formatMessage({
    id: 'xpack.fleet.noAccess.accessDeniedTitle',
    defaultMessage: 'Access denied'
  }),
  actionSection: []
}, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_i18nReact.FormattedMessage, {
  id: "xpack.fleet.noAccess.accessDeniedDescription",
  defaultMessage: "You are not authorized to access Elastic Fleet. To use Elastic Fleet, you need a user role that contains All permissions for this application."
}))));
exports.NoAccessPage = NoAccessPage;