"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "基础对话框"
 * description: "对话框是用于在不离开主路径的情况下，提供用户快速执行简单的操作、确认用户信息或反馈提示的辅助窗口。"
 */
var react_1 = __importStar(require("react"));
var console_components_1 = require("@alicloud/console-components");
var content = (react_1.default.createElement("div", { style: {
        width: '344px',
        height: '170px',
        borderRadius: '4px',
        background: '#F6F6F6',
        color: '#aaa',
        textAlign: 'center',
        lineHeight: '170px',
    } }, "Dialog Content"));
exports.default = (function () {
    var _a = (0, react_1.useState)(false), visible = _a[0], setVisible = _a[1];
    return (react_1.default.createElement("div", { className: "App" },
        react_1.default.createElement(console_components_1.Button, { onClick: function () { return setVisible(!visible); }, type: "primary" }, "\u6807\u9898"),
        visible && (react_1.default.createElement(console_components_1.Dialog, { title: "\u6807\u9898", visible: visible, footerAlign: "right", onOk: function () { return setVisible(!visible); }, onCancel: function () { return setVisible(!visible); }, onClose: function () { return setVisible(!visible); } }, content))));
});
