import{i as e}from"./bundle-mjs-NviOedTj.js";import{R as t}from"./auth-kryaWyOt.js";import{a as n}from"./card-BIJl8bBv.js";import{Aa as r,Na as i,ja as a}from"./training-B42Vc7Pp.js";import{S as o,n as s}from"./react-BDcLiltL.js";var c=e();function l({to:e,label:l,icon:u,tooltip:d,onNavigate:f,labelClassName:p,arrowClassName:m}){let h=t();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`span`,{"aria-hidden":`true`,className:`mx-0.5 h-4 w-px shrink-0 bg-border/70 first:hidden`}),(0,c.jsxs)(r,{children:[(0,c.jsx)(i,{asChild:!0,children:(0,c.jsxs)(`button`,{type:`button`,"aria-label":l,onClick:()=>{f?.(),h({to:e})},className:`flex h-[34px] min-w-0 items-center gap-1.5 rounded-full pl-2.5 pr-2 text-ui-13 font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,c.jsx)(s,{icon:u,className:`size-4 shrink-0`}),(0,c.jsx)(`span`,{className:n(`min-w-0 truncate`,p),children:l}),(0,c.jsx)(s,{icon:o,className:n(`size-3.5 shrink-0 opacity-60`,m)})]})}),(0,c.jsx)(a,{children:d??`Go to ${l}`})]})]})}export{l as t};