import{A as m,j as e,B as a,T as d,bC as j}from"./index-c3f592b2.js";import{L as f}from"./LoadingButton-69b28388.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};
