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