import { useState } from 'react' import { usePWAInstall } from '@/hooks/usePWAInstall' import { usePlatform } from '@/hooks/usePlatform' import { CloseIcon, ShareIcon, PlusCircleIcon } from '@/components/icons' export function InstallPrompt() { const { canInstall, canInstallIOS, promptInstall, dismissInstall, isStandalone } = usePWAInstall() const { isTelegram, haptic } = usePlatform() const [showIOSGuide, setShowIOSGuide] = useState(false) if (isTelegram || isStandalone) { return null } // iOS Safari install guide if (canInstallIOS) { if (showIOSGuide) { return (
Tap the
Scroll down and tap
Tap Add in the top right corner
Install Hapi
Add to home screen for the best experience
Install Hapi
Add to home screen for the best experience