(depth: number, tailPath: readonly string[])
| 24 | } |
| 25 | |
| 26 | export function formatWidgetPath(depth: number, tailPath: readonly string[]): string { |
| 27 | if (tailPath.length === 0) return "(root)"; |
| 28 | const path = tailPath.join(" -> "); |
| 29 | return depth > tailPath.length ? `... -> ${path}` : path; |
| 30 | } |
| 31 | |
| 32 | function isInteractiveVNode(v: VNode): boolean { |
| 33 | const proto = getWidgetProtocol(v.kind); |