import type { FC } from "react"; import * as React from "react"; export interface ComponentProps { libComponents: Record; editorID?: number; component: string; type?: string; parentEditorID?: number; [key: string]: unknown; } /** * Griddo core component to render dynamically a component/module (using the * `component` prop) from the `libComponents` (a list of React components) with * the props we provide to it * * @example * import Hero from './Hero' * import CardCollection from './CardCollection' * const moduleList = { Hero, CardCollection } * * // Render the Hero component from `moduleList` with `props` * */ declare function Component({ libComponents, ...props }: ComponentProps): React.JSX.Element | null; declare function getComponent(components: Record>>, props: { component: string; [key: string]: unknown; }): FC> | null; export { Component, getComponent };