How to use the @talend/react-components.Inject.get function in @talend/react-components

To help you get started, we’ve selected a few @talend/react-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / ui / packages / datagrid / src / components / DefaultCellRenderer / AvroRenderer.component.js View on Github external
export default function AvroRenderer({ avroRenderer, colDef, data, getComponent }) {
	const typeRenderer = getTypeRenderer(colDef.avro.type);
	const componentId = avroRenderer[`${typeRenderer}CellRenderer`];
	const Component = Inject.get(getComponent, componentId, DefaultRenderer);

	return ;
}