import * as React from 'react';
import { IconSelector } from '../../../components/IconSelector';
import { useAdaptable } from '../../AdaptableContext';
/**
 * This component connects to adaptable to retrieve custom icons
 */
export const AdaptableIconSelector = (props) => {
    const adaptable = useAdaptable();
    const userInterfaceOptions = adaptable.api.optionsApi.getAdaptableOptions()?.userInterfaceOptions;
    const customDefinedIcons = userInterfaceOptions.customIcons ?? [];
    return React.createElement(IconSelector, { customIcons: customDefinedIcons, ...props });
};
