/** * PWA Install Banner Component * Shows a banner prompting users to install the app */ import { Download, Smartphone } from 'lucide-react'; import { Button } from '@veza/design-system'; import { usePWAInstallBanner } from '@/hooks/usePWA'; import { useTranslation } from 'react-i18next'; import { cn } from '@/lib/utils'; export function PWAInstallBanner() { const { showBanner, isInstalling, handleInstall, handleDismiss } = usePWAInstallBanner(); const { t } = useTranslation(); if (!showBanner) { return null; } return (
System.Uplink

{t('pwa.install.title', 'Native_Access')}

{t( 'pwa.install.description', 'ESTABLISH_LOCAL_UPLINK_FOR_LOW_LATENCY_OPERATIONS', )}

); } /** * PWA Update Banner Component * Shows a banner when app update is available */ export function PWAUpdateBanner() { // This would need to be implemented with the PWA hook // For now, returning null as it requires more complex state management return null; } /** * Offline Banner Component * Shows when the app is offline */ export function OfflineBanner() { // This would integrate with the offline detection hook // For now, returning null as it requires more complex state management return null; }