import { ControlType, PropertyControls } from "framer"; export function generatePropertyControls( options: { hidden?: (props: any) => boolean; omittedProperties?: string[]; } = {} ): PropertyControls { const properties: PropertyControls = { // Property Controls go here }; if (!!options.omittedProperties) { return Object.keys(properties).reduce((acc, key) => { if (options.omittedProperties.indexOf(key) === -1) { acc[key] = properties[key]; } return acc; }, {}); } return properties; }