"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react");require("react-router-dom");require("./Icons/EuiIcon.js");const m=require("./Button.js"),l=require("@elastic/eui"),f=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=f(i),E=({schema:t,values:M,onSubmit:b,title:n,button:a,children:c})=>{const[s,o]=i.useState(!1);l.useGeneratedHtmlId({prefix:"modalForm"});const d=()=>o(!1),u=()=>o(!0);let r;return s&&(r=e.default.createElement(l.EuiModal,{onClose:d,initialFocus:"[name=popswitch]"},e.default.createElement(l.EuiModalHeader,null,e.default.createElement(l.EuiModalHeaderTitle,null,e.default.createElement("h2",{className:"text-lg"},n))),e.default.createElement(l.EuiModalBody,null,c))),e.default.createElement("div",null,a?e.default.createElement(m.Button,{label:a.label,icon:a.icon,onClick:u,className:"border boder-gray-600"}):e.default.createElement(l.EuiLink,{onClick:u},"\u7F16\u8F91"),r)};exports.Modal=E;
//# sourceMappingURL=Modal.js.map
