Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
...actionGroups.map((group: MenuGroupDescriptor) => {
const buttons = group.actions.map(
(groupAction: ActionListItemDescriptor) => {
return transformAction(appBridge, groupAction);
},
);
return ButtonGroup.create(appBridge, {label: group.title, buttons});
}),
];