import{j as r}from"./vendor-react-wBh_31cN.js";import{L as x}from"./vendor-router-D1GqFWiT.js";import{G as e}from"./index-dNe6i2rS.js";import{a_ as p,aa as u}from"./vendor-icons-BUUmD6ht.js";const L=({href:t,onClick:m,children:s,external:n,className:i,disabled:a})=>{const o=n?p:u;if(t&&!a){const j=!n&&t.startsWith("/");return r.jsx(e,{variant:"outline",size:"sm",className:i,asChild:!0,children:j?r.jsxs(x,{to:t,children:[s,r.jsx(o,{})]}):r.jsxs("a",{href:t,...n&&{target:"_blank",rel:"noopener noreferrer"},children:[s,r.jsx(o,{})]})})}return r.jsxs(e,{variant:"outline",size:"sm",className:i,onClick:m,disabled:a,children:[s,r.jsx(o,{})]})};export{L as C};
