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

18 lines 1.01 kB
import { TableToGenericCardMapping } from '@/components/GenericCard/TableRowGenericCard'; export declare function useShowDoiCardLabel(opts: { /** The ID of the portal created with https://rest-docs.synapse.org/rest/POST/portal.html */ portalId?: string; /** The candidate DOI ID of the resource */ resourceId?: string; }): boolean; /** * Given a portalDoiConfiguration and a row of data, return the candidate DOI ID for this row. The candidate DOI ID * can be used to look up an existing DOI or create a new one that can be looked up later. */ export declare function getCandidateDoiId(args: { /** Configuration to display a DOI, as well as the ability to create one for users with such permission */ portalDoiConfiguration?: TableToGenericCardMapping['portalDoiConfiguration']; /** A record that represents a table row or DOI lookup, mapping from column name to value */ data: Record<string, string | null>; }): string | undefined; //# sourceMappingURL=PortalDOIUtils.d.ts.map