contentfultree/dist/ContentTreeNode.d.ts
2025-08-12 11:45:00 +02:00

23 lines
613 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
addChildNodes: (node: ContentTreeNodeProps) => Promise<void>
removeChildNodes: (node: ContentTreeNodeProps) => void
editEntry: (nodeId: string) => Promise<void>
}) => ReactElement
export default ContentTreeNode