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