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