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