@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
17 lines (16 loc) • 745 B
JavaScript
;
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;