"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardLayoutSkeleton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Container_1 = require("../DashboardLayout/Container");
const constants_1 = require("../DashboardLayout/constants");
const DashboardLayout_1 = require("../DashboardLayout/DashboardLayout");
const styles_1 = require("../DashboardLayout/DashboardWrapper/styles");
const Header_1 = require("../DashboardLayout/Header");
const DashboardSidebarSkeleton_1 = require("../DashboardSidebarSkeleton");
const MenuOrganization_1 = require("../MenuOrganization");
const LoadingPlaceholder_1 = require("../placeholders/LoadingPlaceholder");
const styles_2 = require("./styles");
/**
 * Компонент можно использовать для отображения состояния загрузки дашборда
 */
const DashboardLayoutSkeleton = ({ product, productSwitcher, hasSidebar = true, hasProfile = true, hasMenuOrganization = true, }) => {
    return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: constants_1.dashboardLayoutClassnames.root, children: [(0, jsx_runtime_1.jsx)(styles_1.DecorativeHeaderBackground, { role: "presentation", "$isFocusedMode": false }), (0, jsx_runtime_1.jsxs)(Container_1.Container, { children: [hasSidebar && (0, jsx_runtime_1.jsx)(DashboardSidebarSkeleton_1.DashboardSidebarSkeleton, {}), (0, jsx_runtime_1.jsx)(Header_1.Header, { productSwitcher: productSwitcher, product: product, menuOrganization: hasMenuOrganization ? () => (0, jsx_runtime_1.jsx)(MenuOrganization_1.MenuOrganizationSkeleton, {}) : undefined, profile: hasProfile
                            ? { displayName: '', isLoading: true, menuList: [] }
                            : undefined }), (0, jsx_runtime_1.jsx)(DashboardLayout_1.DashboardLayout.Main, { children: (0, jsx_runtime_1.jsx)(styles_2.Content, { children: (0, jsx_runtime_1.jsx)(LoadingPlaceholder_1.LoadingPlaceholder, { title: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u0430\u043D\u043D\u044B\u0445" }) }) })] })] }));
};
exports.DashboardLayoutSkeleton = DashboardLayoutSkeleton;
