import { path } from 'ramda';
import EntityProfileRenderer from './EntityProfileRenderer';
import ReferenceRenderer from './ReferenceRenderer';
import BlobRenderer from './BlobRenderer';
import { ImageRenderer } from './ImageRenderer';
import { EntityIdRenderer } from './EntityIdRenderer';
import SimpleAttributeRenderer from './SimpleAttributeRenderer';
export var getAttributeValueRenderer = function (columnInfo) {
    if (columnInfo.id === 'label') {
        return EntityProfileRenderer;
    }
    if (columnInfo.id === 'entityId') {
        return EntityIdRenderer;
    }
    switch (path(['dataTypeDefinition', 'type'], columnInfo)) {
        case 'Blob':
            return BlobRenderer;
        case 'Reference':
            return ReferenceRenderer;
        case 'Image':
            return ImageRenderer;
    }
    return SimpleAttributeRenderer;
};
