UNPKG

@iobroker/adapter-react

Version:

React classes to develop admin interfaces for ioBroker with react.

53 lines (52 loc) 1.75 kB
export default _export; export type DialogConfirmProps = { /** * The key to identify this component. */ key?: string; /** * The dialog title; default: Are you sure? (translated) */ title?: string; /** * The dialog text. */ text: string; /** * The ok button text; default: OK (translated) */ ok?: string; /** * The cancel button text; default: Cancel (translated) */ cancel?: string; /** * interval in minutes for which the confirm dialog will be suppressed if activated. */ suppressQuestionMinutes?: string; /** * The suppress checkbox text; default: Suppress question for next %s minutes (translated) */ suppressText?: string; /** * Name of the dialog. Used only with suppressQuestionMinutes to store the user choice */ dialogName?: string; /** * Close handler. */ onClose?: (ok: boolean) => void; }; declare const _export: React.ComponentType<Pick<PropTypes.InferProps<{ onClose: PropTypes.Validator<(...args: any[]) => any>; title: PropTypes.Requireable<string>; text: PropTypes.Requireable<string>; ok: PropTypes.Requireable<string>; cancel: PropTypes.Requireable<string>; icon: PropTypes.Requireable<object>; suppressQuestionMinutes: PropTypes.Requireable<number>; suppressText: PropTypes.Requireable<string>; dialogName: PropTypes.Requireable<string>; }>, "cancel" | "title" | "text" | "ok" | "icon" | "onClose" | "dialogName" | "suppressQuestionMinutes" | "suppressText"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"suppress" | "suppressRoot">>; import PropTypes from "prop-types"; import React from "react";