import{k as m,j as e,B as a,T as d,bi as j}from"./index-4dfc510b.js";import{L as f}from"./LoadingButton-09ba23cd.js";const v=({title:s,is_goback:t,children:r,showSaveButton:i,onSave:n,loading:l,go_back_url:o,button_name:p="Save",otherButtons:x,extra:c})=>{const g=m();return e.jsxs(a,{sx:{mt:2},children:[e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2,flexWrap:"wrap",gap:2},children:[e.jsxs(d,{variant:"h4",sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer",mt:-.5},onClick:()=>{g(`${o??".."}`,{relative:"path"})},children:[t&&e.jsx(j,{}),s]}),e.jsxs(a,{sx:{display:"flex",alignItems:"center",gap:2,ml:"auto"},children:[x,i&&e.jsx(f,{variant:"contained",size:"large",loading:l,onClick:n,children:p}),c]})]}),r]})};export{v as G};
