import{u as n,l2 as c,bG as u,r as d,j as t,L as i,F as f}from"./index-Cox3ZWL0.js";import{J as l}from"./JobOverviewContent-Bn12bVpb.js";import"./Project-CBPFwDml.js";import"./alertManagerConfig.selectors-D5v0uPxO.js";import"./defineProperty-Bl0iR0r2.js";import"./HumanizedCronExpression-CCEBWMyY.js";import"./index-CvEisYn5.js";import"./form-_K_-Blw_.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./symmetricDifference-DM6mun8f.js";import"./index-uwkRD1BL.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-C9cjFU4I.js";import"./Panel-Cu-mlmB5.js";import"./Deprecated-g8R65bmH.js";import"./index-B_EdXPH-.js";import"./DateValue-CuTPLbUr.js";import"./CronSchedule-BX_J5ybN.js";import"./LabelValue-BkTpmDa_.js";import"./RunJobButtons-C-tcX_qk.js";import"./NotebookJobArgsCallout-RotJDH-K.js";import"./ServiceAlertList-VvuXq15t.js";import"./index-C7Rz9Es-.js";import"./KubernetesProjectView-CST_ZK0x.js";const q=()=>{const{id:e,jobName:s}=n(),{currentData:r,isLoading:m,isFetching:p,refetch:o}=c({pId:`${e}`,jobName:s},{refetchOnFocus:!0});u(r==null?void 0:r.name);const a=d.useCallback(()=>{r&&o()},[r,o]);return m?t.jsx(i,{}):t.jsxs(f,{children:[p&&t.jsx(i,{}),r&&t.jsx(l,{data:r,onClickRefresh:a})]})};export{q as default};
