import{F as h,r as j,e1 as f,j as e,B as a,_ as g,T as u,e2 as y}from"./index-76d4793e.js";import{D as v}from"./Divider-3f770145.js";import{L as C}from"./LoadingButton-89ba2db7.js";const I=({title:n,is_goback:r,children:i,showSaveButton:o,onSave:x,loading:l,go_back_url:s,button_name:c="Save",otherButtons:t,extra:p})=>{const d=h(),m=j.useMemo(()=>f(),[]);return e.jsx(a,{sx:{mt:2},children:e.jsxs(g,{sx:{boxShadow:"none"},children:[e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2,gap:2,boxShadow:"none"},children:[e.jsxs(u,{variant:"h4",sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer"},onClick:()=>{d(`${s||".."}`,{relative:"path"})},children:[r&&e.jsx(y,{color:m.palette.primary.main}),n,e.jsx(v,{orientation:"horizontal"})]}),e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,flex:1},children:[t&&t,o&&e.jsx(C,{variant:"contained",size:"large",loading:l,onClick:x,children:c})]}),p]}),i]})})};export{I as G};
