Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function renderButtons(id : string, buttons : Array) : ZalgoPromise> {
return ZalgoPromise.map(buttons, button => {
return ZalgoPromise.try(() => {
if (button.container) {
return renderButton(id, button);
} else {
return button.button;
}
}).then(element => {
let container;
let type;
let condition = button.condition;
let click = button.click;
if (button.container) {