Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/notifications/NotificationsSummary",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../DiagramBuilderContext","../../SidebarPanel","./CurrentNotifications"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("@frontend-taglib-clay$clayui/button")),a=(u(n("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n("liferay!frontend-js-react-web$react"))),i=n("../../../../DiagramBuilderContext"),o=u(n("../../SidebarPanel")),f=u(n("./CurrentNotifications"));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}var c=({setContentName:e})=>{const{selectedItem:t}=(0,a.useContext)(i.DiagramBuilderContext);return a.default.createElement(o.default,{panelTitle:Liferay.Language.get("notifications")},(null==t?void 0:t.data.notifications)?a.default.createElement(f.default,{notifications:t.data.notifications,setContentName:e}):a.default.createElement(r.default,{className:"mr-3",displayType:"secondary",onClick:()=>e("notifications")},Liferay.Language.get("new")))};t.default=c}}));
//# sourceMappingURL=NotificationsSummary.js.map