feat(react/ribbon): port image properties

This commit is contained in:
Elian Doran
2025-08-22 21:04:04 +03:00
parent 21683db0b8
commit 8287063aab
8 changed files with 123 additions and 154 deletions

View File

@@ -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]), []);
}
}