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) 1.28 kB
import React from 'react'; import { Evaluation } from '../../utils/synapseTypes'; import { RequiredProperties } from '../../utils'; export declare type ExistingEvaluation = RequiredProperties<Evaluation, 'id' | 'etag' | 'createdOn' | 'contentSource' | 'ownerId'>; export declare type EvaluationCardProps = { /** properties of the Evaluation to show*/ evaluation: ExistingEvaluation; /** Callback when the Edit option in the dropdown is clicked*/ onEdit: () => void; /** Callback when the Modify Access option in the dropdown is clicked*/ onModifyAccess: () => void; /** Callback when the Submit button is clicked*/ onSubmit: () => void; /** Callback when the Delete option is successful */ onDeleteSuccess: () => void; }; /** * This component is currently only intended to be used in Synapse.org. * For this reason, the dropdown menu items are unimplemented as no components * in this project implement their behavior. The dropdown options are also * not shown if the current user does not have permissions for the action * * All Evaluation metadata must be provided to this component; it will not * retrieve an Evaluation via a REST API call */ export declare const EvaluationCard: React.FunctionComponent<EvaluationCardProps>;