"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../../shared/utils");
const get_from_main_1 = require("../utils/get-from-main");
function EmptyPlaceholder({ __mometa }) {
    const React = require('react');
    if (!React || !(0, utils_1.isInIframe)()) {
        return null;
    }
    const [{ canSelect }] = (0, get_from_main_1.useHeaderStatus)();
    return React.createElement('mometa-empty-placeholder', {
        style: Object.assign({ color: '#a1a0a0', fontStyle: 'italic', width: '100%' }, (canSelect
            ? {
                display: 'block'
            }
            : {
                display: 'none'
            }))
    }, '空视图元素');
}
exports.default = EmptyPlaceholder;
//# sourceMappingURL=empty-placeholder.js.map