import{_ as s}from"./LoadingButton-CH88QwYm.js";import{r as f,c as i,f as a,e as l,w as o,o as n}from"./app-CYVHboi-.js";const c=["href"],u={__name:"Button",props:{loading:Boolean,href:{type:String,default:""},away:{type:Boolean,default:!1},type:{type:String,default:"submit"}},setup(e){return(t,y)=>{const r=f("Link");return e.away&&e.href?(n(),i("a",{key:0,href:e.href,class:"btn-primary"},[a(t.$slots,"default")],8,c)):e.href?(n(),l(r,{key:1,href:e.href,class:"btn-primary"},{default:o(()=>[a(t.$slots,"default")]),_:3},8,["href"])):(n(),l(s,{key:2,type:e.type,loading:e.loading,class:"btn-primary"},{default:o(()=>[a(t.$slots,"default")]),_:3},8,["type","loading"]))}}};export{u as _};
