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