Connecting to chat...
import { clsx } from 'clsx'; import React, { useMemo } from 'react'; /** * Props for the AppLoading component. */ interface AppLoadingProps { /** Width of the loading container (default: '50vw') */ width?: string | number; /** Height of the loading container (default: '50vh') */ height?: string | number; } /** * Loading component displayed while connecting to chat services. * Shows a spinner and connection status message. */ export const AppLoading = ({ width = '50vw', height = '50vh' }: AppLoadingProps) => { const containerStyle = useMemo( () => ({ width: typeof width === 'number' ? `${String(width)}px` : width, height: typeof height === 'number' ? `${String(height)}px` : height, }), [width, height] ); return (
Connecting to chat...