in src/components/detailed-list/detailed-list-item.ts [146:161]
private getActionButton (action: ChatItemButton, showText?: boolean): ExtendedHTMLElement {
return new Button({
testId: testIds.detailedList.action,
icon: action.icon ? new Icon({ icon: action.icon }).render : undefined,
...(action.text !== undefined && showText === true ? { label: action.text } : {}),
attributes: {
title: action.description ?? ''
},
primary: false,
onClick: (e) => {
cancelEvent(e);
this.props.onActionClick?.(action);
this.hideActionMenuOverlay();
},
}).render;
}