UNPKG

storybook-addon-contentful-preview

Version:
27 lines (19 loc) 698 B
import React from 'react'; type MakeDecoratorResult = (...args: any) => any; declare const withLivePreview: MakeDecoratorResult; declare const withContentful: MakeDecoratorResult; type BaseEntry = { sys: { id: string; type: string; }; fields: Record<string, any>; }; declare const withEntryArgMutator: MakeDecoratorResult; type AnyEntry = { depth?: number; breadcrumbs?: string[]; contentful_entry: BaseEntry; } & Record<string, any>; declare function ContentfulDebugComponent({ contentful_entry, depth, breadcrumbs, ...fields }: AnyEntry): React.JSX.Element; export { ContentfulDebugComponent, withContentful, withEntryArgMutator, withLivePreview };