import{i as e,o as t,r as n,t as r}from"./button-DJ30HgDO.js";import{o as i}from"./chunk-EPOLDU6W-BGm2xlSj.js";import{n as a}from"./use-runtime-config-CkwqDzno.js";import{d as o}from"./free-solid-svg-icons-DA-2lxug.js";e();var s=t(n(),1);function c({entityId:e,route:t,buttonText:n}){let c=i(),l=`${a().basePath}/${t}/${e}`;return(0,s.jsx)(r,{onClick:e=>{e.stopPropagation(),c(l)},icon:o,className:`gap-1`,children:n})}export{c as t};