-
+
+ {announcement}
+
+ onClose()}
+ title={networkErrorText}
+ titleId="webchatDisconnectOverlayTitle"
+ closeButtonAriaLabel={
config.settings.customTranslations?.ariaLabels?.closeConnectionWarning ??
- "Close connection lost overlay"
+ "Close chat window"
}
+ closeButtonProps={{
+ "data-disconnect-overlay-close-button": true,
+ className: "webchat-header-close-button",
+ }}
+ initialFocusRef={reconnectRef}
+ className="webchat-disconnect-overlay"
+ data-disconnect-overlay
>
-
-
- {config.settings.customTranslations?.network_error ?? "Connection lost"}
- {isPermanent ? (
- <>
- {navigator.onLine ? (
-
- ) : (
-
- {config.settings.customTranslations?.no_network ??
- "No network connection"}
-
- )}
- >
- ) : (
- {config.settings.customTranslations?.reconnecting ?? "Reconnecting..."}
- )}
-
+ {getStatusText() && (
+