import{u as n,l1 as c,bG as u,r as d,j as t,L as i,F as f}from"./index-DHiyXWqE.js";import{J as l}from"./JobOverviewContent-BG9EcuQ1.js";import"./Project-DwrxbZJj.js";import"./alertManagerConfig.selectors-0se_RTtj.js";import"./defineProperty-C28_3XcK.js";import"./HumanizedCronExpression-FxwdMNJF.js";import"./index-5hEKE-oe.js";import"./form-CrZPXKpD.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./symmetricDifference-BqIFhGVd.js";import"./index-C52WzLFZ.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-D6oq-fy9.js";import"./Panel-VWoblIge.js";import"./Deprecated-C23Jh13V.js";import"./index-DFvCs-SP.js";import"./DateValue-DZ395D7A.js";import"./CronSchedule-NRBbl145.js";import"./LabelValue-BXwn8NCm.js";import"./RunJobButtons-D0JthD_K.js";import"./NotebookJobArgsCallout-WRTW2zEE.js";import"./ServiceAlertList-DMbEJyHm.js";import"./index-5xepsXs7.js";import"./KubernetesProjectView-B86L_C2V.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};
