import{Hy as e,Ly as t,Zv as n,ap as r,dg as i,kp as a,lh as o,tn as s}from"./index-DDwwBb9e.js";var c=e();function l(){let e=a().query.id,{project:l}=r(),u=o.graphs.getById.useQuery({projectId:l?.id??``,id:e??``},{enabled:!!l?.id&&!!e,retry:!1}),d=u.data?.graph,f=u.data?.name,p=u.data?.alert,m=p!=null&&p.type!=null&&(p.action===`SEND_EMAIL`||p.action===`SEND_SLACK_MESSAGE`)?p:void 0;return u.error?(0,c.jsxs)(i,{align:`start`,p:8,gap:2,children:[(0,c.jsx)(n,{fontSize:`xl`,fontWeight:`bold`,children:`Graph not found`}),(0,c.jsx)(n,{color:`gray.600`,children:`The graph you are looking for does not exist or you do not have access to it.`})]}):u.isLoading?(0,c.jsx)(t,{p:8,children:`Loading…`}):d?(0,c.jsx)(s,{customId:e,graph:d,name:f??``,filters:u.data?.filters,alert:m}):null}export{l as default};
//# sourceMappingURL=_id_-DdxUOTg0.js.map