UNPKG

photoeditorsdk

Version:

The most comprehensive photo editor SDK for HTML5

36 lines (35 loc) 1.13 kB
import { InfoLocale, ErrorLocale, WarningLocale } from '../../../configuration/custom/language'; export type ModalIdentifier = keyof ErrorLocale | keyof WarningLocale | keyof InfoLocale | 'inputText'; export declare enum ModalType { ERROR = "error", WARNING = "warning", INFO = "info", TEXT_EDIT = "textEdit" } export interface CustomDialogProps { isVisible?: boolean; identifier: ModalIdentifier; type: ModalType; height?: string; width?: string; position: { x: number; y: number; }; confirmLabel?: string; dismissLabel?: string; headerLabel?: string; bodyLabel?: string; isConfirmDisabled?: boolean; isDismissDisabled?: boolean; handleClose: () => void; handleConfirm?: (e?: React.MouseEvent<HTMLButtonElement>) => void; handleDismiss?: (e?: React.MouseEvent<HTMLButtonElement>) => void; className?: string; style?: React.CSSProperties; header?: React.ReactNode; body?: React.ReactNode; footer?: React.ReactNode; children?: React.ReactNode; } export type CustomDialog = React.ComponentType<CustomDialogProps>;