import{k as m,j as e,B as a,T as d,bi as j}from"./index-d895656a.js";import{L as f}from"./LoadingButton-c8915ab4.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};
