synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
16 lines • 788 B
TypeScript
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