import React , { lazy } from 'react' ; import { VisEditorOptionsProps } from 'src/plugins/visualizations/public' ; import { TagCloudVisParams , TagCloudTypeProps } from '../types' ; const TagCloudOptionsLazy = lazy ( ( ) => import ( './tag_cloud_options' ) ) ; export const getTagCloudOptions = ( { palettes } ) => ( props ) => < TagCloudOptionsLazy { ... props } palettes = { palettes } / > ;