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