pzl-react-reusable-components
Version:
11 lines (10 loc) • 514 B
TypeScript
/// <reference types="react" />
import { ConfirmDialogResponseValue, IConfirmDialogProps } from './types';
/**
* Confirm action using a `Dialog` from `@fluentui/react`. Specify `Dialog` properties like `title` and `subText` along
* with a `responses` array and get back a JSX element with the dialog and a response callback function.
*/
export declare function useConfirmationDialog(): [JSX.Element, (props: IConfirmDialogProps) => Promise<{
response: ConfirmDialogResponseValue;
comment?: string;
}>];