import{i as e,n as t,t as n}from"./react-B8IZ02wI.js";import{Q as r,t as i}from"./button-DqbiydrF.js";import{On as a,lt as o,n as s}from"./index-Bg7bo8aA.js";var c=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`}})),l=e(n()),u=e(c());function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var f=l.forwardRef((e,t)=>l.createElement(r,d({},e,{ref:t,icon:u.default}))),p=s();function m({title:e,backTo:t,loading:n,extra:r}){let s=a();return(0,p.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:16},children:[(0,p.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,p.jsx)(i,{type:`text`,icon:(0,p.jsx)(f,{}),onClick:()=>s(t||-1),children:`返回`}),(0,p.jsx)(`h2`,{style:{margin:0,fontSize:18,fontWeight:600},children:e}),n&&(0,p.jsx)(o,{size:`small`})]}),r]})}export{m as t};