contentfultree/dist/ContentTreeNode.d.ts
2023-02-22 10:57:12 +01:00

23 lines
687 B
TypeScript

import { ReactElement } from 'react';
export interface ContentTreeNodeProps {
id: string;
name: string;
contentType?: string;
icon?: string;
expand: boolean;
parentId?: string;
childNodes?: ContentTreeNodeProps[];
hasChildNodes?: boolean;
publishingStatus?: string;
updatedAt?: string;
publishedAt?: string;
}
declare const ContentTreeNode: (props: {
node: ContentTreeNodeProps;
depth?: number | undefined;
addChildNodes: (node: ContentTreeNodeProps) => Promise<void>;
removeChildNodes: (node: ContentTreeNodeProps) => void;
editEntry: (nodeId: string) => Promise<void>;
}) => ReactElement;
export default ContentTreeNode;