import{d as l,M as p,k as _,c as m,l as o,o as d,n as e,u as n,bI as C,bJ as b,af as i,b3 as c,b2 as h}from"./index-gULJbqdd.js";import{u as w}from"./usePageTitle-HrbxxOEb.js";const x=l({__name:"NotificationCreate",setup(y){const r=p();async function s(t){try{await r.notifications.createNotification(t),c.push(i.notifications())}catch(a){h("Error creating notification","error"),console.warn(a)}}function f(){c.push(i.notifications())}return w("Create Notification"),(t,a)=>{const u=_("p-layout-default");return d(),m(u,{class:"notification-create"},{header:o(()=>[e(n(C))]),default:o(()=>[e(n(b),{action:"Create",onSubmit:s,onCancel:f})]),_:1})}}});export{x as default};
