{showLabel ? (
{name}
) : null}
{actions.map((action) => {
const actionContent = getActionContent(action);
const actionLabel = getActionLabel(action);
const actionValue = getActionValue(action);
const actionState = actionStates?.[actionValue];
const actionAriaLabel = showActionLabels
? getActionAriaLabel(action, actionContent)
: actionLabel;
return (
);
})}
);
}