"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdaptableIconSelector = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const IconSelector_1 = require("../../../components/IconSelector");
const AdaptableContext_1 = require("../../AdaptableContext");
/**
 * This component connects to adaptable to retrieve custom icons
 */
const AdaptableIconSelector = (props) => {
    const adaptable = (0, AdaptableContext_1.useAdaptable)();
    const userInterfaceOptions = adaptable.api.optionsApi.getAdaptableOptions()?.userInterfaceOptions;
    const customDefinedIcons = userInterfaceOptions.customIcons ?? [];
    return React.createElement(IconSelector_1.IconSelector, { customIcons: customDefinedIcons, ...props });
};
exports.AdaptableIconSelector = AdaptableIconSelector;
