mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
feat(react/ribbon): port image properties
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { ComponentChild, createContext, render, type JSX, type RefObject } from "preact";
|
||||
import Component from "../../components/component";
|
||||
import { EventData, EventNames } from "../../components/app_context";
|
||||
import { useContext } from "preact/hooks";
|
||||
|
||||
export const ParentComponent = createContext<Component | null>(null);
|
||||
|
||||
@@ -44,4 +46,4 @@ export function disposeReactWidget(container: Element) {
|
||||
export function separateByCommas(components: ComponentChild[]) {
|
||||
return components.reduce<any>((acc, item) =>
|
||||
(acc.length ? [...acc, ", ", item] : [item]), []);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user