synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
22 lines (21 loc) • 759 B
TypeScript
import * as React from 'react';
import { unitOfTime } from 'moment';
declare type ObservationCardSchema = {
submitterName: string;
submitterUserId: string;
time: string;
timeUnits: unitOfTime.Base;
text: string;
tag: string;
};
export declare type ObservationCardProps = {
schema: ObservationCardSchema;
data: Record<ObservationCardSchema[keyof ObservationCardSchema], string>;
};
/**
* Specialized Observation Card, initially implemented for the NF portal.
* Expects the following columns: submitterName, submitterUserId, time, timeUnits, text, and tag.
*/
export declare const ObservationCard: React.FunctionComponent<ObservationCardProps>;
export declare const LoadingObservationCard: React.FunctionComponent;
export {};