mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-03 13:20:37 -05:00
12 lines
328 B
TypeScript
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();
|
|
};
|