synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
33 lines • 1.06 kB
TypeScript
import { ReactNode } from 'react';
import { DialogContentProps } from '@mui/material';
export type Step<TStepId = string> = {
id: TStepId;
title: string;
cancelButtonText?: string;
onConfirm?: () => void;
confirmStep?: string;
confirmEnabled?: boolean;
confirmButtonText?: string;
previousStep?: string;
nextStep?: string;
nextEnabled?: boolean;
contentProps?: DialogContentProps;
};
export type Steps = Step[];
export type StepperDialogProps = {
errorMessage: string | undefined;
onCancel: () => void;
onConfirm: () => void;
confirming?: boolean;
onStepChange: (arg: string) => void;
open: boolean;
step: Step;
content: ReactNode;
loading: boolean;
};
/**
* A stepper dialog built using MUI components.
*/
declare function StepperDialog({ errorMessage, onCancel, onConfirm, confirming, onStepChange, open, step, content, loading, }: StepperDialogProps): import("react/jsx-runtime").JSX.Element | null;
export default StepperDialog;
//# sourceMappingURL=StepperDialog.d.ts.map