import{d as p,aF as l,c as _,g as o,h as m,o as d,j as e,k as n,cQ as h,cR as C,ca as c,bo as i,L as y}from"./index-BqDjVCF_.js";import{u as N}from"./usePageTitle-CZh_IXm2.js";const w=p({__name:"NotificationCreate",setup(b){const r=l();async function s(t){try{await r.notifications.createNotification(t),c.push(i.notifications())}catch(a){y("Error creating notification","error"),console.warn(a)}}function u(){c.push(i.notifications())}return N("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-exM8ofWc.js.map
