/** * Update Notification Component * Shows when a new version is available */ import { RefreshCw, X } from 'lucide-react'; import { useVersion } from '@/hooks/useVersion'; import { useTelegram } from '@/hooks/useTelegram'; export function UpdateNotification() { const { hasUpdate, forceUpdate, dismissUpdate, currentVersion } = useVersion(); const { hapticImpact } = useTelegram(); if (!hasUpdate) return null; const handleUpdate = () => { hapticImpact('medium'); forceUpdate(); }; const handleDismiss = () => { hapticImpact('light'); dismissUpdate(); }; return (
Ji bo taybetmendiyên nû û rastkirinên ewlehiyê nûve bike.
v{currentVersion}