UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

16 lines (15 loc) 619 B
import { jsx as _jsx } from "react/jsx-runtime"; import { isAgChartDefinition, } from '../../../AdaptableState/ChartingState'; import { AgChargingWizard } from './AgChargingWizard'; import { ExternalChartingWizard } from './ExternalChartingWizard'; export const ChartingWizard = (props) => { const { data, configEntities, ...other } = props; if (isAgChartDefinition(data)) { const chartDef = data; return (_jsx(AgChargingWizard, { ...other, data: chartDef })); } else { const chartDef = data; return (_jsx(ExternalChartingWizard, { ...other, data: chartDef })); } };