"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Layout = void 0;
var _management = _interopRequireDefault(require("../management"));
var _requireAuth = require("../auth/requireAuth");
var _index = _interopRequireDefault(require("../header/index"));
var _subHeader = require("../subHeader");
var _react = _interopRequireDefault(require("react"));
var _jsxRuntime = require("react/jsx-runtime");
const Layout = _ref => {
  let {
    brandCode,
    selectedModuleName,
    selectedEntityName,
    children
  } = _ref;
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_requireAuth.RequireAuth, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
      brandCode: brandCode,
      selectedModuleName: selectedModuleName,
      selectedEntityName: selectedEntityName
    }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_subHeader.SubHeader, {
      brandCode: brandCode,
      selectedModuleName: selectedModuleName,
      selectedEntityName: selectedEntityName
    }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_management.default, {
      brandCode: brandCode,
      selectedModuleName: selectedModuleName,
      selectedEntityName: selectedEntityName,
      children: children
    })]
  });
};
exports.Layout = Layout;