import{d as p,M as l,c as _,i as e,j as m,o as d,m as o,u as n,bG as C,bH as b,ae as i,b1 as c,b0 as h}from"./index-bD6G21oH.js";import{u as N}from"./usePageTitle-27XdpEbQ.js";const x=p({__name:"NotificationCreate",setup(w){const r=l();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 u(){c.push(i.notifications())}return N("Create Notification"),(t,a)=>{const f=m("p-layout-default");return d(),_(f,{class:"notification-create"},{header:e(()=>[o(n(C))]),default:e(()=>[o(n(b),{action:"Create",onSubmit:s,onCancel:u})]),_:1})}}});export{x as default};
