0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-05 06:10:52 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/transformPageNode.ts
2024-04-12 18:52:19 +02:00

10 lines
306 B
TypeScript

import { PenpotPage } from '@ui/lib/types/penpotPage';
import { transformSceneNode } from '.';
export const transformPageNode = async (node: PageNode): Promise<PenpotPage> => {
return {
name: node.name,
children: await Promise.all(node.children.map(child => transformSceneNode(child)))
};
};