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