import { BlurView } from "expo-blur"; import React from "react"; import { Animated, Pressable, View } from "react-native"; import { Text } from "@/components/common/Text"; import { useScaledTVTypography } from "@/constants/TVTypography"; import { useTVFocusAnimation } from "./hooks/useTVFocusAnimation"; export interface TVOptionButtonProps { label: string; value: string; onPress: () => void; hasTVPreferredFocus?: boolean; maxWidth?: number; } export const TVOptionButton = React.forwardRef( ({ label, value, onPress, hasTVPreferredFocus, maxWidth }, ref) => { const typography = useScaledTVTypography(); const { focused, handleFocus, handleBlur, animatedStyle } = useTVFocusAnimation({ scaleAmount: 1.02, duration: 120 }); return ( {focused ? ( {label} {value} ) : ( {label} {value} )} ); }, );