"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react"),f=require("react-router-dom"),l=require("./Icons/Icons.js");require("./Icons/EuiIcon.js");const g=require("./Button.js");require("@elastic/eui");const b=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=b(d);function y({children:t,title:c,icon:r,subTitle:x,desc:p,roles:v={},buttons:o,back:s,onUpdate:E,onRead:N,onCreate:h,onAdd:k,onDelete:I,onLink:j,titleEdit:a,onTitleEdit:u,button:q,onButton:w,onSave:D,..._}){let i=f.useNavigate();return e.default.createElement("div",{className:"flex items-center justify-between my-4"},e.default.createElement("div",{className:"flex items-center flex-1 min-w-0"},e.default.createElement("div",{className:"flex items-center flex-1"},e.default.createElement("h2",{className:"flex items-center text-lg font-bold text-gray-900 sm:truncate"},s&&e.default.createElement("div",{className:"mr-4 sm:block"},e.default.createElement("button",{type:"button",onClick:n=>i(-1),className:"inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500"},e.default.createElement(l.Icons,{name:"back"}),s.title||"\u8FD4\u56DE")),r&&e.default.createElement(l.Icons,{name:r}),c)),a&&e.default.createElement("div",{className:"hidden ml-2 sm:block"},e.default.createElement("button",{type:"button",onClick:n=>u(n),className:"inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500"},a.icon,a.title))),e.default.createElement("div",{className:"flex items-center space-x-3 lg:ml-4"},o&&o.map((n,m)=>e.default.createElement(g.Button,{key:m,...n})),t))}exports.PageTile=y;
//# sourceMappingURL=PageTile.js.map
