import * as React from 'react'; import { Dashboard, EntityType } from '../../../types.generated'; import { Entity, PreviewType } from '../Entity'; import { DashboardPreview } from './preview/DashboardPreview'; import DashboardProfile from './profile/DashboardProfile'; /** * Definition of the DataHub Dashboard entity. */ export class DashboardEntity implements Entity { type: EntityType = EntityType.Dashboard; isSearchEnabled = () => true; isBrowseEnabled = () => false; getAutoCompleteFieldName = () => 'title'; getPathName = () => 'dashboard'; getCollectionName = () => 'Dashboards'; renderProfile = (urn: string) => ; renderPreview = (_: PreviewType, data: Dashboard) => { return ( ); }; }