/** * Collect the flat element-template entries into a single drill-in "Templates" * category. External resources are later merged into the same category. * * bpmn-js-create-append-anything emits template entries flat (`.template-`); * grouping them under a category is a Camunda presentation choice. * * @param entries * @param config * * @return entries with templates nested under the Templates category */ export function groupTemplates(entries: Object, { idPrefix, translate }: { idPrefix: string; translate: Function; }): Object;