import{d as p,ao as m,c as l,w as a,r as _,o as d,a as e,u as r,bE as h,bF as C}from"./index-4d9fe32c-718dc5d9.js";import{L as b}from"./prefect-design-a921a7c6.js";import{u as w}from"./usePageTitle-e8e2e29d.js";import{r as i}from"./index-558d177a.js";import{r as n}from"./routes-1bd54f1a.js";import"./meta-26546594.js";const L=p({__name:"NotificationCreate",setup(y){const c=m();async function s(t){try{await c.notifications.createNotification(t),i.push(n.notifications())}catch(o){b("Error creating notification","error"),console.warn(o)}}function f(){i.push(n.notifications())}return w("Create Notification"),(t,o)=>{const u=_("p-layout-default");return d(),l(u,{class:"notification-create"},{header:a(()=>[e(r(h))]),default:a(()=>[e(r(C),{action:"Create",onSubmit:s,onCancel:f})]),_:1})}}});export{L as default};
