UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

25 lines 1.31 kB
import { SynapseClientError } from '@sage-bionetworks/synapse-client/util/SynapseClientError'; import { ReactNode } from 'react'; export type CannedRejectionDialogProps = { open: boolean; tableId: string; onConfirm: (message: string) => void; onClose: () => void; /** Text injected into the beginning of the email template */ defaultMessagePrefix?: string; /** Text appended onto the end of the email template */ defaultMessageAppend?: string; /** Text to display above the canned rejection reasons */ rejectionFormPromptCopy?: string; /** Error to display, in case one occurred in the callback to `onReject` */ error: SynapseClientError | null; /** Optional children, can be used to extend the form as needed on step 2 */ children?: ReactNode; }; /** * Modal component presented to a data access submission reviewer when they decide to reject a request. * The modal contains a form for selecting rejection reasons and a text field for editing the rejection message. * After crafting a message, the user can reject the submission and send the message to the requester. */ export declare function CannedRejectionDialog(props: CannedRejectionDialogProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=CannedRejectionDialog.d.ts.map