Add draft how to render a react component in contract of injection token

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso committed 2023-03-16 14:47:47 +02:00
1 parent c025b1a7c2
commit aab72a9bf8
3 files changed
+10 -7

No files matched your search

@@ -7,6 +7,7 @@ import { getInjectionToken } from "@ogre-tools/injectable";
export type ClusterOverviewUIBlock = {
id: string;
text: string;
Component: React.ElementType
};
export const clusterOverviewUIBlockInjectionToken = getInjectionToken<ClusterOverviewUIBlock>({