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{d as a}from"./free-solid-svg-icons-DA-2lxug.js";e();var o=t(n(),1);function s({entityId:e,route:t,buttonText:n}){let s=i(),c=`/${t.replace(/^\/+/,``)}/${e}`;return(0,o.jsx)(r,{onClick:e=>{e.stopPropagation(),s(c)},icon:a,className:`gap-1`,children:n})}export{s as t};