import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as r}from"./vendor-frame-CwiylG4Y.js";import{nn as a}from"./vendor-all-2-BJdkbLSj.js";import{O as n,R as o}from"./shared-frame-DbQbH4Yr.js";var i=e(s()),d=r(),l=(0,i.memo)(function({showBrowse:e,showCreate:s,onBrowse:r,addLabel:i,createItems:l,addTriggerRef:t,onAddMenuOpenChange:m}){return e||s?(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[e&&(0,d.jsx)(o,{variant:"secondary",size:"sm",onClick:r,children:(0,d.jsx)(a,{defaultMessage:"Browse",id:"AetNADx5Bh"})}),s&&(0,d.jsxs)(n.Root,{onOpenChange:m,children:[(0,d.jsx)(n.TriggerButton,{ref:t,size:"sm","aria-label":i,children:(0,d.jsx)(a,{defaultMessage:"Add",id:"2/2yg+qAwp"})}),(0,d.jsx)(n.Popup,{align:"end",children:l})]})]}):null});export{l as t};