import React from 'react'; import { Pressable, Text, ActivityIndicator, ViewStyle } from 'react-native'; import { useTheme } from '~/hooks/useTheme'; interface FloatingActionButtonProps { onPress: () => void; icon: string; label: string; disabled?: boolean; loading?: boolean; style?: ViewStyle; } export function FloatingActionButton({ onPress, icon, label, disabled = false, loading = false, style, }: FloatingActionButtonProps) { const { colors } = useTheme(); return ( {loading ? ( ) : ( <> {icon} {label} )} ); }