import{d as l,h as p,c as _,k as o,l as m,o as d,m as e,n,cE as C,cF as h,cc as c,bo as i,M as w}from"./index-CKtbewUP.js";import{u as y}from"./usePageTitle-BJBko9bD.js";const x=l({__name:"NotificationCreate",setup(N){const r=p();async function s(t){try{await r.notifications.createNotification(t),c.push(i.notifications())}catch(a){w("Error creating notification","error"),console.warn(a)}}function u(){c.push(i.notifications())}return y("Create Notification"),(t,a)=>{const f=m("p-layout-default");return d(),_(f,{class:"notification-create"},{header:o(()=>[e(n(C))]),default:o(()=>[e(n(h),{action:"Create",onSubmit:s,onCancel:u})]),_:1})}}});export{x as default};
//# sourceMappingURL=NotificationCreate-825SnH7l.js.map
