import * as React from 'react';
import ColumnsList from './ColumnsList';
export 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, { theme: theme, handle: props.columnsHandle, onValidityChange: (valid) => {
            props.setPrimaryKeyIsNotSelected(valid);
        }, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: props.adaptableConfig.gridOptions?.columnDefs }));
};
