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

29 lines 1.61 kB
import React from 'react'; export type EntityBadgeIconsProps = { entityId: string; versionNumber?: number; flexWrap?: 'wrap' | 'nowrap' | '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset' | 'wrap-reverse'; justifyContent?: 'flex-start' | 'flex-end' | string; /** Shows an icon indicating if the entity is 'public' or 'private'. Default true */ showIsPublicPrivate?: boolean; /** Shows an icon if the entity has sharing settings set on itself. Default true */ showHasLocalSharingSettings?: boolean; /** Shows an icon if the entity has annotations, or if it has a validation schema (in experimental mode only). Default true */ showHasAnnotations?: boolean; /** Shows an icon if the entity a wiki. Default true */ showHasWiki?: boolean; /** Shows an icon if the entity has been mentioned in discussion threads. Default true */ showHasDiscussionThread?: boolean; showUnlink?: boolean; onUnlink?: (entityId: string) => void; onUnlinkError?: (error: unknown) => void; /** Whether or not the badges (e.g. Annotations) can trigger opening a modal on click */ canOpenModal: boolean; }; /** * Stateless component used to show icons that show an entity's status. * Adapted from https://github.com/Sage-Bionetworks/SynapseWebClient/blob/46b9b717636cda2421926d96365244bbb72a05b6/src/main/java/org/sagebionetworks/web/client/widget/entity/EntityBadge.java */ export declare const EntityBadgeIcons: (props: EntityBadgeIconsProps) => React.ReactNode; export default EntityBadgeIcons; //# sourceMappingURL=EntityBadgeIcons.d.ts.map