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