import * as React from 'react'; import { DatabaseFilled, DatabaseOutlined } from '@ant-design/icons'; import { DataFlow, EntityType, SearchResult } from '../../../types.generated'; import { Preview } from './preview/Preview'; import { DataFlowProfile } from './profile/DataFlowProfile'; import { Entity, IconStyleType, PreviewType } from '../Entity'; /** * Definition of the DataHub DataFlow entity. */ export class DataFlowEntity implements Entity { type: EntityType = EntityType.DataFlow; // TODO: add flow specific icons icon = (fontSize: number, styleType: IconStyleType) => { if (styleType === IconStyleType.TAB_VIEW) { return ; } if (styleType === IconStyleType.HIGHLIGHT) { return ; } if (styleType === IconStyleType.SVG) { return ( ); } return ( ); }; isSearchEnabled = () => false; isBrowseEnabled = () => false; isLineageEnabled = () => false; getAutoCompleteFieldName = () => 'name'; getPathName = () => 'dataflow'; getCollectionName = () => 'DataFlows'; renderProfile = (urn: string) => ; renderPreview = (_: PreviewType, data: DataFlow) => { return ( ); }; renderSearch = (result: SearchResult) => { const data = result.entity as DataFlow; return ( ); }; }