import{z as m,j as e,B as a,T as d,by as j}from"./index-e972fa8e.js";import{L as f}from"./LoadingButton-1312b0f8.js";const y=({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{y as G};
