import { PenpotDocument } from '@ui/lib/types/penpotDocument'; import { transformPageNode } from '.'; export const transformDocumentNode = async (node: DocumentNode): Promise => { return { name: node.name, children: await Promise.all(node.children.map(child => transformPageNode(child))) }; };