import { PenpotFile } from '@ui/lib/penpot'; import { FRAME_TYPE } from '@ui/lib/types/frame/frameAttributes'; import { FrameShape } from '@ui/lib/types/frame/frameShape'; import { createPenpotItem } from '.'; export const createPenpotArtboard = ( file: PenpotFile, // eslint-disable-next-line @typescript-eslint/no-unused-vars { type, children = [], ...rest }: FrameShape ) => { file.addArtboard({ type: FRAME_TYPE, ...rest }); for (const child of children) { createPenpotItem(file, child); } file.closeArtboard(); };