contentfultree/dist/ContentTreeRoot.d.ts
2025-03-03 09:41:58 +01:00

16 lines
671 B
TypeScript

import type { PlainClientAPI } from 'contentful-management';
import type { PageAppSDK } from 'contentful-ui-extensions-sdk';
import { type ReactElement } from 'react';
import { type ContentTreeNodeProps } from './ContentTreeNode';
export interface ContentTreeRootProps {
node: ContentTreeNodeProps;
sdkInstance: PageAppSDK;
cma: PlainClientAPI;
nodeContentTypes: string[];
titleFields: string[];
locales: string[];
depth: number;
iconRegistry?: Record<string, string>;
}
export declare const ContentTreeRoot: ({ node, sdkInstance, cma, nodeContentTypes, titleFields, locales, depth, iconRegistry, }: ContentTreeRootProps) => ReactElement;