@dcl/react-ecs
Version:
Decentraland ECS
18 lines (17 loc) • 446 B
TypeScript
import type { IEngine, PointerEventsSystem } from '@dcl/ecs';
import type { ReactEcs } from './react-ecs';
/**
* @public
*/
export type UiComponent = () => ReactEcs.JSX.ReactNode;
/**
* @public
*/
export interface ReactBasedUiSystem {
destroy(): void;
setUiRenderer(ui: UiComponent): void;
}
/**
* @public
*/
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;