import React , { lazy } from 'react' ; import { VisEditorOptionsProps } from '../../../../../visualizations/public' ; import { PieTypeProps } from '../../types' ; import { PieVisParams } from '../../../../../chart_expressions/expression_pie/common' ; const PieOptionsLazy = lazy ( ( ) => import ( './pie' ) ) ; export const getPieOptions = ( { showElasticChartsOptions , palettes , trackUiMetric } ) => ( props ) => ( < PieOptionsLazy { ... props } palettes = { palettes } showElasticChartsOptions = { showElasticChartsOptions } trackUiMetric = { trackUiMetric } / > ) ;