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

33 lines 1.06 kB
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