UNPKG

docz

Version:

It's has never been so easy to documents your things!

31 lines (30 loc) 847 B
import { FC, ComponentType as CT } from 'react'; import { Entry } from '../state'; export interface PlaygroundProps { className?: string; style?: any; wrapper?: CT<any>; components: ComponentsMap; component: JSX.Element; position: number; code: string; scope: Record<string, any>; language?: string; showLivePreview?: boolean; useScoping?: boolean; } export interface LayoutProps { doc: Entry; [key: string]: any; } export interface ComponentsMap { notFound?: CT; layout?: CT<LayoutProps>; playground?: CT<PlaygroundProps>; [key: string]: any; } export interface ComponentsProviderProps { components: ComponentsMap; } export declare const ComponentsProvider: FC<ComponentsProviderProps>; export declare const useComponents: () => ComponentsMap;