UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

16 lines 788 B
import React from 'react'; import { Entity, EntityHeader } from '@sage-bionetworks/synapse-types'; export type EntityLinkProps = { entity: string | EntityHeader | Entity; versionNumber?: number; /** Whether the component should link to the entity page in Synapse. Link can be overriden by passing a string. Default true */ link?: boolean | string; className?: string; /** Whether to display an icon identifying the entity type. Default true */ showIcon?: boolean; /** The field of the entity to display. Default is 'name' */ displayTextField?: keyof Entity | keyof EntityHeader; onEntityIdClicked?: (entityId: string) => void; }; export declare const EntityLink: (props: EntityLinkProps) => React.ReactNode; //# sourceMappingURL=EntityLink.d.ts.map