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