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