UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

27 lines (26 loc) 885 B
import * as React from 'react'; import { FileHandle, FileHandleAssociation } from '../../utils/synapseTypes/'; declare type SynapseImageProps = { wikiId?: string; synapseId?: string; fileName?: string; fileResults?: FileHandle[]; params: { align: string; scale: string; responsive: string; altText: string; }; }; declare type SynapseImageState = { preSignedURL: string; }; declare class SynapseImage extends React.Component<SynapseImageProps, SynapseImageState> { constructor(props: SynapseImageProps); static contextType: React.Context<import("../../utils/SynapseContext").SynapseContextType | undefined>; getEntity(): void; getSynapseFiles(fileHandleAssociationList: FileHandleAssociation[], id: string): void; componentDidMount(): void; render(): JSX.Element | null; } export default SynapseImage;