UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

12 lines (11 loc) 406 B
import * as React from 'react'; import { IconComponent } from '../../../components/Icon'; import { useCustomIcon } from './useCustomIcon'; /** * This is a connected componnet. * It needs to be used only inside adaptable context. */ export const AdaptableIconComponent = (props) => { const icon = useCustomIcon(props.icon); return React.createElement(IconComponent, { ...props, icon: icon }); };