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 TVFilterButtonProps { label: string; value: string; onPress: () => void; hasTVPreferredFocus?: boolean; disabled?: boolean; hasActiveFilter?: boolean; } export const TVFilterButton: React.FC = ({ label, value, onPress, hasTVPreferredFocus = false, disabled = false, hasActiveFilter = false, }) => { const typography = useScaledTVTypography(); const { focused, handleFocus, handleBlur, animatedStyle } = useTVFocusAnimation({ scaleAmount: 1.04, duration: 120 }); return ( {label ? ( {label} ) : null} {value} ); };