import{r as m,j as s}from"./vendor-react-wBh_31cN.js";import{G as i,d as x}from"./index-dNe6i2rS.js";import{at as n}from"./vendor-icons-BUUmD6ht.js";const l=m.forwardRef(({children:a,className:r,type:o="button",...t},e)=>a!=null&&a!==""?s.jsxs(i,{ref:e,type:o,variant:"outline",size:"sm",className:r,...t,children:[s.jsx(n,{className:"size-4"}),a]}):s.jsx(i,{ref:e,type:o,variant:"secondary",size:"xs","aria-label":t["aria-label"]??"Go back",className:x("px-2.5",r),...t,children:s.jsx(n,{className:"size-4"})}));l.displayName="BackButton";export{l as B};
