import { React } from '.';
import { Layer } from './layer';
import './utils.css';
export default class Loading extends Layer {
    renderBody() {
        var { text } = this.props;
        return (React.createElement("div", { ref: "root", className: "g_loading" },
            React.createElement("div", { className: "text" }, text || 'Loading..')));
    }
    static show(text = 'Loading..', id) {
        Loading.globaLayerGroup.show(Loading, { text, id });
    }
    static close(id) {
        Loading.globaLayerGroup.close(id || Loading);
    }
}
