mirror of
https://github.com/foomo/contentfultree.git
synced 2025-10-16 12:25:41 +00:00
23 lines
692 B
TypeScript
23 lines
692 B
TypeScript
import { type 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;
|