import { GenericEntityProperties } from '@app/entity/shared/types'; import React from 'react'; import { EntityPath, EntityType, MlModel } from '../../../../types.generated'; import DefaultPreviewCard from '../../../previewV2/DefaultPreviewCard'; import { capitalizeFirstLetterOnly } from '../../../shared/textUtil'; import { useEntityRegistry } from '../../../useEntityRegistry'; import { IconStyleType, PreviewType } from '../../Entity'; import { getDataProduct } from '../../shared/utils'; import { EntityMenuItems } from '../../shared/EntityDropdown/EntityMenuActions'; export const Preview = ({ data, model, degree, paths, isOutputPort, headerDropdownItems, previewType, }: { data: GenericEntityProperties | null; model: MlModel; degree?: number; paths?: EntityPath[]; isOutputPort?: boolean; headerDropdownItems?: Set; previewType?: PreviewType; }): JSX.Element => { const entityRegistry = useEntityRegistry(); const genericProperties = entityRegistry.getGenericEntityProperties(EntityType.Mlmodel, model); return ( ); };