import{u as n,l2 as c,bG as u,r as d,j as t,L as i,F as f}from"./index-C6OVXshM.js";import{J as l}from"./JobOverviewContent-DVNm_ldV.js";import"./Project-CZXtYPe0.js";import"./alertManagerConfig.selectors-DfRN6QT6.js";import"./defineProperty-C28biA2x.js";import"./HumanizedCronExpression-B7-e7zEg.js";import"./index-D-ycbDlq.js";import"./form-DrxIax0x.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./symmetricDifference-BYGiWULO.js";import"./index-Cgrh9eC0.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-CRR-Czhi.js";import"./Panel-Cdyv0nKn.js";import"./Deprecated-C2s2xtW5.js";import"./index-CU_u1Yy3.js";import"./DateValue-8r_4t1GZ.js";import"./CronSchedule-m_YvBzdh.js";import"./LabelValue-B7IOIxJd.js";import"./RunJobButtons-0BCHH7L3.js";import"./NotebookJobArgsCallout-a6FvBxXj.js";import"./ServiceAlertList-DAoM0sfu.js";import"./index-DAXcl1uf.js";import"./KubernetesProjectView-Bv6KZBrJ.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};
