import { Text, Animated, Pressable } from "react-native"; import { Ionicons } from "@expo/vector-icons"; import { useRouter } from "expo-router"; import { useAuthContext } from "@/auth/AuthContext"; interface SignOutButtonProps { textOpacity: Animated.Value; iconTranslateX: Animated.Value; paddingLeft: Animated.Value; } export const SignOutButton = ({ textOpacity, iconTranslateX, paddingLeft, }: SignOutButtonProps) => { const router = useRouter(); const { logout } = useAuthContext(); const handleSignOut = async () => { try { await logout(); router.replace("/sign-in"); } catch (err) { console.error("Logout error:", err); } }; return ( Sign out ); };