import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { usePwaInstall } from '@/hooks/use-pwa-install'; import { __ } from '@/utils/i18n'; import { DownloadIcon, PlusSquareIcon, ShareIcon } from 'lucide-react'; import { useState } from 'react'; export default function InstallAppButton() { const { platform, canInstall, promptInstall } = usePwaInstall(); const [showIosDialog, setShowIosDialog] = useState(false); if (platform === 'android') { return ( ); } if (platform === 'ios') { return ( <> {__('Install Whisper Money')} {__( 'Add the app to your home screen for the best experience.', )}
  1. {__('Tap the')}{' '} {__('Share')} {' '} {__('button in your browser toolbar')}
  2. {__('Tap')}{' '} {__('Add to Home Screen')}
); } return null; }