0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 13:20:37 -05:00
penpot-exporter-figma-plugin/ui-src/parser/creators/createPage.ts
2024-06-26 08:11:57 +02:00

12 lines
328 B
TypeScript

import { PenpotFile } from '@ui/lib/types/penpotFile';
import { PenpotPage } from '@ui/lib/types/penpotPage';
import { createItems } from '.';
export const createPage = (file: PenpotFile, { name, options, children = [] }: PenpotPage) => {
file.addPage(name, options);
createItems(file, children);
file.closePage();
};