import React, { useCallback } from 'react' import { BlurView } from 'expo-blur' import { Pressable, Text } from 'react-native' import { Palette } from '../../styles' import { FONT_FAMILY } from '../../styles/Fonts' import { Entypo } from '@expo/vector-icons' import { openShareSheet } from '../../utils/shareSheet' export default function ShareBtn({ style, onPress = null, label = 'Partager l’expérience' }) { const handlePress = useCallback(() => { if (typeof onPress === 'function') { onPress() return } openShareSheet() }, [onPress]) return ( {label} ) }