synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
27 lines • 1.4 kB
TypeScript
import { RequiredProperties } from '@/utils';
import { Evaluation } from '@sage-bionetworks/synapse-types';
export type ExistingEvaluation = RequiredProperties<Evaluation, 'id' | 'etag' | 'createdOn' | 'contentSource' | 'ownerId'>;
export 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 function EvaluationCard({ evaluation, onEdit, onModifyAccess, onSubmit, onDeleteSuccess, }: EvaluationCardProps): import("react/jsx-runtime").JSX.Element;
export default EvaluationCard;
//# sourceMappingURL=EvaluationCard.d.ts.map