contentfultree/dist/ContentTreeNode.d.ts
2022-07-12 10:40:23 +02:00

22 lines
626 B
TypeScript

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) => void;
removeChildNodes: (node: ContentTreeNodeProps) => void;
editEntry: (nodeId: string) => void;
}) => JSX.Element;
export default ContentTreeNode;