import { ReactNode } from 'react'; export interface NetworkErrorBoundaryProps { children: ReactNode; /** * Optional custom offline content to display * If not provided, uses default offline SVG */ offlineContent?: ReactNode; /** * Optional callback when network status changes */ hasError?: boolean; /** * When set to `true`, the component will render the error/overlay UI */ onNetworkStatusChange?: (isOnline: boolean) => void; /** * Optional custom CSS class for the overlay */ overlayClassName?: string; /** * Optional z-index override for the overlay */ overlayZIndex?: number; /** * Width of the fallback icon (default: 300) */ iconWidth?: number; /** * Height of the fallback icon (default: 300) */ iconHeight?: number; }