import{z as m,j as e,B as a,T as d,bv as j}from"./index-ba11e6ab.js";import{L as f}from"./LoadingButton-a3eae003.js";const v=({title:s,is_goback:t,children:r,showSaveButton:n,onSave:i,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,n&&e.jsx(f,{variant:"contained",size:"large",loading:l,onClick:i,children:p}),c]})]}),r]})};export{v as G};
