"use strict";

var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
  return mod && mod.__esModule ? mod : {
    "default": mod
  };
};

Object.defineProperty(exports, "__esModule", {
  value: true
});

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

var CheckPermissions_1 = __importDefault(require("./CheckPermissions"));

var Authorized = function Authorized(_a) {
  var children = _a.children,
      authority = _a.authority,
      _b = _a.noMatch,
      noMatch = _b === void 0 ? null : _b,
      allowCheck = _a.allowCheck;
  var childrenRender = typeof children === 'undefined' ? null : children;
  var dom = CheckPermissions_1["default"](authority, childrenRender, noMatch, allowCheck);
  return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {
    children: dom
  }, void 0);
};

exports["default"] = Authorized;

