feat(react/ribbon): port note paths tab

This commit is contained in:
Elian Doran
2025-08-22 21:45:03 +03:00
parent 8287063aab
commit 8f69b87dd1
10 changed files with 161 additions and 170 deletions

View File

@@ -43,7 +43,7 @@ export function disposeReactWidget(container: Element) {
render(null, container);
}
export function separateByCommas(components: ComponentChild[]) {
export function joinElements(components: ComponentChild[], separator = ", ") {
return components.reduce<any>((acc, item) =>
(acc.length ? [...acc, ", ", item] : [item]), []);
(acc.length ? [...acc, separator, item] : [item]), []);
}