import{d as p,m as l,a as m,f as _,w as o,o as d,n as e,g as n,bj as h,bk as C,aG as i,X as r,aF as y}from"./index-18beffd6.js";import{u as b}from"./usePageTitle-5c97edcb.js";const k=p({__name:"NotificationCreate",setup(w){const c=l();async function s(t){try{await c.notifications.createNotification(t),i.push(r.notifications())}catch(a){y("Error creating notification","error"),console.warn(a)}}function f(){i.push(r.notifications())}return b("Create Notification"),(t,a)=>{const u=m("p-layout-default");return d(),_(u,{class:"notification-create"},{header:o(()=>[e(n(h))]),default:o(()=>[e(n(C),{action:"Create",onSubmit:s,onCancel:f})]),_:1})}}});export{k as default};
