import React from 'react';
import { PrimaryActionHeaderWrapper } from '../wrappers/PrimaryActionHeaderWrapper';
import { DisplayCardWrapper } from '../wrappers/DisplayCardWrapper';
import { BarChartWrapper } from '../wrappers/BarChartWrapper';
import { HistogramWrapper } from '../wrappers/HistogramWrapper';
import { DonutWrapper } from '../wrappers/DonutWrapper';
import { LineGraphWrapper } from '../wrappers/LineGraphWrapper';
import { AgGridSimpleWrapper } from '../wrappers/AgGridSimpleWrapper';
import { BioCardWrapper } from '../wrappers/BioCardWrapper';
const Other = props => {
    return React.createElement("div", null, "Test");
};
const engineWrapper = {
    PrimaryActionHeader: props => PrimaryActionHeaderWrapper(props),
    DisplayCard: props => DisplayCardWrapper(props),
    BarChart: props => BarChartWrapper(props),
    Histogram: props => HistogramWrapper(props),
    DonutChart: props => DonutWrapper(props),
    LineGraph: props => LineGraphWrapper(props),
    agGridSimple: props => AgGridSimpleWrapper(props),
    BioCard: props => BioCardWrapper(props),
    Other,
};
export function withEngineComponent(WrappedComponent) {
    const hocComponent = hocProps => {
        const wrappedComponent = engineWrapper[WrappedComponent] || engineWrapper['Other'];
        return wrappedComponent(hocProps);
    };
    return hocComponent;
}
//# sourceMappingURL=withEngineComponent.js.map