"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Main = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const constants_1 = require("./constants");
const styles_1 = require("./styles");
const useLogic_1 = require("./useLogic");
/**
 * Основной контент приложения
 */
exports.Main = (0, react_1.forwardRef)(({ children, alert }, ref) => {
    const { onAnimationEnd, alertContainerRef } = (0, useLogic_1.useLogic)();
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.AlertWrapper, { ref: alertContainerRef, className: constants_1.dashboardLayoutMainClassnames.alert, children: alert }), (0, jsx_runtime_1.jsx)(styles_1.MainRoot, { className: constants_1.dashboardLayoutMainClassnames.main, ref: ref, onAnimationEnd: onAnimationEnd, children: children })] }));
});
