import { formatter } from './formatter.util' ; import componentRender from './componentRender.util' ; const createComponentFiles = ( components , path , appName , exportAppBool , zip ) => { components . forEach ( ( component ) => { zip . file ( `src/components/${ component . title }.tsx` , formatter ( componentRender ( component , components ) ) ) ; } ) ; return path ; } ; export default createComponentFiles ;