mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
13 lines
328 B
TypeScript
13 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();
|
||
|
};
|