"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 customIcons = adaptable.api.userInterfaceApi.getCustomIcons();
    return React.createElement(IconSelector_1.IconSelector, { customIcons: customIcons, ...props });
};
exports.AdaptableIconSelector = AdaptableIconSelector;
