import { BlurView } from "expo-blur"; import { Image } from "expo-image"; import React from "react"; import { Platform, Pressable, Text } from "react-native"; import { icons } from "../assets"; import { Palette } from "../styles"; import { FONT_FAMILY } from "../styles/Fonts"; import alert from "./Alert"; export default function ShareBtnWeb({ style }) { const handleShare = () => { const shareUrl = typeof window !== "undefined" ? window.location.href : undefined; if (typeof navigator !== "undefined" && navigator.share) { navigator .share({ title: "MusicLand", text: "Découvre mon expérience sur MusicLand", ...(shareUrl ? { url: shareUrl } : {}), }) .catch(() => { alert("Partage", "Le partage a été annulé."); }); return; } alert("Partage", "Fonctionnalité disponible prochainement."); }; return ( Partagez l'expérience ); }