mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
feat(react/ribbon): port note paths tab
This commit is contained in:
@@ -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]), []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user