Added installation notification
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
import { Download, X } from 'lucide-react'
|
||||
import { Button } from '../../components/ui'
|
||||
import { cn } from '../../lib/utils'
|
||||
|
||||
type InstallBannerProps = {
|
||||
visible: boolean
|
||||
onInstall: () => void
|
||||
onDismiss: () => void
|
||||
}
|
||||
|
||||
export function InstallBanner({ visible, onInstall, onDismiss }: InstallBannerProps) {
|
||||
if (!visible) return null
|
||||
|
||||
export function InstallBanner({ onInstall, onDismiss }: InstallBannerProps) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'fixed inset-x-0 z-30 px-4 lg:left-auto lg:right-6 lg:w-96 lg:px-0',
|
||||
className="fixed inset-x-0 z-30 px-4 lg:left-auto lg:right-6 lg:w-96 lg:px-0
|
||||
// Encima de BottomNav en móvil; abajo a la derecha en desktop.
|
||||
'bottom-[calc(4.5rem+env(safe-area-inset-bottom))] lg:bottom-6',
|
||||
)}
|
||||
bottom-[calc(4.5rem+env(safe-area-inset-bottom))] lg:bottom-6"
|
||||
>
|
||||
<div className="flex items-start gap-3 rounded-xl border border-border bg-surface p-4 shadow-lg">
|
||||
<div className="min-w-0 flex-1">
|
||||
|
||||
Reference in New Issue
Block a user