Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/Layout/LayoutScreen/AddNewTabButton",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","../objectLayoutContext","./ModalAddObjectLayoutTab"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.AddNewTabButton=function AddNewTabButton(){const[{isViewOnly:e}]=(0,u.useLayoutContext)(),[t,a]=(0,l.useState)(!1),{observer:c,onClose:i}=(0,o.useModal)({onClose:()=>a(!1)});return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"layout-tab__add-tab-btn"},l.default.createElement(r.default,{disabled:e,displayType:"secondary",onClick:()=>a(!0)},l.default.createElement(n.default,{symbol:"plus"}),l.default.createElement("span",{className:"ml-2"},Liferay.Language.get("add-tab")))),t&&l.default.createElement(d.ModalAddObjectLayoutTab,{observer:c,onClose:i}))};var r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),o=a("@frontend-taglib-clay$clayui/modal"),l=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),u=a("../objectLayoutContext"),d=a("./ModalAddObjectLayoutTab");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=AddNewTabButton.js.map