UNPKG

@gpa-gemstone/react-interactive

Version:
31 lines (30 loc) 717 B
import * as React from 'react'; interface IProps { /** * Title of the warning */ Title: string; /** * Callback function used when warning is closed * @param confirmed Cancel Button(false) or Confirm Button(true) */ CallBack: ((confirmed: boolean) => void); /** * Flag to show the warning */ Show: boolean; /** * Message shown in the body of the warning */ Message: string; /** * Optional flag to show a cancel button */ ShowCancel?: boolean; /** * Optional zIndex for the modal */ ZIndex?: number; } declare const Warning: (props: React.PropsWithChildren<IProps>) => JSX.Element; export default Warning;