import * as React from 'react';
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 (React.createElement(AgChargingWizard, { ...other, data: chartDef }));
    }
    else {
        const chartDef = data;
        return (React.createElement(ExternalChartingWizard, { ...other, data: chartDef }));
    }
};
