"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const usePCEditorBlockRegister_1 = require("../../../hooks/usePCEditorBlockRegister.js");
const usePCEditorStore_1 = require("../../../hooks/usePCEditorStore.js");
const utils_1 = require("../../../utils/index.js");
const b = (0, utils_1.block)('empty-blocks-wrapper');
const EMPTY_DROP_PATH = [0];
const EmptyBlocksWrapper = () => {
    const { initialized, content: { blocks }, } = (0, usePCEditorStore_1.usePCEditorStore)();
    const blockRef = (0, usePCEditorBlockRegister_1.usePCEditorBlockRegister)(EMPTY_DROP_PATH);
    if (!initialized || blocks.length > 0) {
        return null;
    }
    return ((0, jsx_runtime_1.jsx)("div", { ref: blockRef, className: b(), children: (0, jsx_runtime_1.jsxs)("div", { className: b('content'), children: [(0, jsx_runtime_1.jsx)("div", { className: b('icon'), children: "+" }), (0, jsx_runtime_1.jsx)("div", { className: b('text'), children: "\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0431\u043B\u043E\u043A \u0441\u044E\u0434\u0430" }), (0, jsx_runtime_1.jsx)("div", { className: b('hint'), children: "\u0411\u043B\u043E\u043A\u0438 \u043D\u0430\u0445\u043E\u0434\u044F\u0442\u0441\u044F \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u0441\u043B\u0435\u0432\u0430" })] }) }));
};
exports.default = EmptyBlocksWrapper;
//# sourceMappingURL=EmptyBlocksWrapper.js.map
