Type Alias PopUpAction

PopUpAction: {
    closeOnClick?: boolean;
    confirm?: Content;
    content: Content;
    onClick?: () => void;
    type?: ButtonType;
}

Represents an action for a PopUp.

Type declaration

  • OptionalcloseOnClick?: boolean

    If true, the modal will be closed when the button is clicked.

  • Optionalconfirm?: Content

    If set, confirm overlay will be shown before the action is executed.

  • content: Content

    The content to display in the modal.

  • OptionalonClick?: () => void

    Function to call when the button is clicked.

  • Optionaltype?: ButtonType

    The type of button to display.