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

22 lines (21 loc) 759 B
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 {};