"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigurationWizardColumnsStep = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const ColumnsList_1 = tslib_1.__importDefault(require("./ColumnsList"));
const ConfigurationWizardColumnsStep = (props) => {
    let theme = 'light';
    if (typeof props.adaptableConfig.adaptableOptions.initialState === 'object' &&
        props.adaptableConfig.adaptableOptions.initialState.Theme?.CurrentTheme) {
        theme = props.adaptableConfig.adaptableOptions.initialState.Theme.CurrentTheme;
    }
    return (React.createElement(ColumnsList_1.default, { theme: theme, handle: props.columnsHandle, onValidityChange: (valid) => {
            props.setPrimaryKeyIsNotSelected(valid);
        }, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: props.adaptableConfig.gridOptions?.columnDefs }));
};
exports.ConfigurationWizardColumnsStep = ConfigurationWizardColumnsStep;
