synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
27 lines (26 loc) • 885 B
TypeScript
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;