UNPKG

@chamn/engine

Version:
22 lines (21 loc) 728 B
import { default as React } from 'react'; import { CPlugin } from '../../core/pluginManager'; import { SnippetsCollection, SnippetsType } from '@chamn/model'; export declare const PLUGIN_NAME = "ComponentLib"; type ComponentLibViewState = { componentsList: SnippetsCollection; searchString: string; searchMode: boolean; searchResultList: { name: string; list: SnippetsType[]; }[]; }; export type ComponentLibPluginConfig = { customSearchBar?: (props: { defaultInputView: React.ReactNode; updateState: (newState: Partial<ComponentLibViewState>) => string; }) => React.ReactNode; }; export declare const ComponentLibPlugin: CPlugin<ComponentLibPluginConfig>; export {};