mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-05 06:10:52 -05:00
10 lines
306 B
TypeScript
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)))
|
|
};
|
|
};
|