import{f as j,r as n,l as u,a as y,tE as g,aW as f,c as C,b4 as L,tG as v,tH as H,j as e,B as d,w as b,T as s,by as z,K as i}from"./index-5768b108.js";import{T,t as x}from"./TableCell-73fa51e5.js";import{C as E}from"./CardContent-4b37116a.js";j(T)(({theme:t})=>({[`&.${x.head}`]:{backgroundColor:t.palette.grey[100],color:t.palette.primary},[`&.${x.body}`]:{fontSize:14}}));const I=()=>{var c,l,p;n.useState(0);const t=u(),{departmentHod:{selectedData:r,pageParams:h},mini:{miniLocationList:w,miniUsersList:S,miniLocationLoading:U,miniDepartments:A,miniLocationParams:B,miniUser_Type:P}}=y(m=>({departmentHod:g(m),mini:f(m)})),a=C(),{id:o}=L();return n.useEffect(()=>{a(v({id:o||""}))},[]),n.useEffect(()=>{r&&a(H({...h}))},[r]),e.jsx(e.Fragment,{children:e.jsx(d,{sx:{my:2},children:e.jsx(b,{children:e.jsxs(E,{children:[e.jsxs(s,{variant:"h4",sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer"},onClick:()=>{t("/pages/settings/department-hods",{relative:"path"})},children:[e.jsx(z,{}),"View Department HOD"]}),e.jsx(d,{p:4,children:e.jsx(i,{container:!0,spacing:2,children:e.jsx(i,{size:{xs:10},children:e.jsxs(i,{container:!0,spacing:2,children:[e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"User"}),e.jsx(s,{children:(c=r==null?void 0:r.user)==null?void 0:c.fullname})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"User Type"}),e.jsx(s,{children:r==null?void 0:r.user_type})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"Department"}),e.jsx(s,{children:(l=r==null?void 0:r.department)==null?void 0:l.name})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"Location"}),e.jsx(s,{children:(p=r==null?void 0:r.location)==null?void 0:p.name})]})]})})})})]})})})})};export{I as default};
