import React, { ReactNode } from 'react'; import './Popup.scss'; export interface PopupProps { /** * Popup to open */ isOpen: boolean; /** * Type of Popup eg: success | warning | info | danger */ type: string; /** * Header Title */ headerTitle: string; /** * Text beside Header Title */ headerText: string; /** * Continue button text */ continueButtonLabel: string; /** * Cancel button text */ cancelButtonLabel: string; /** * Continue button to disable or not */ continueButtonDisable: boolean; /** * Cancel button to disable or not */ cancelButtonDisable: boolean; /** * Event for Continue button */ onContinueClick: () => void; /** * Event for Cancel button */ onCancelClick: () => void; /** * Actual content to be shown in popup, eg: warning message or success */ children?: ReactNode; /** * Footer content to be shown in popup, eg: Buttons or text */ footerContent?: ReactNode; } /** * Popup component */ declare const Popup: ({ isOpen, type, headerTitle, headerText, continueButtonLabel, cancelButtonLabel, continueButtonDisable, cancelButtonDisable, onContinueClick, onCancelClick, children, footerContent, }: PopupProps) => React.ReactPortal | null; export default Popup;