import React from "react"; import { Animated, Pressable } from "react-native"; import { Text } from "@/components/common/Text"; import { useScaledTVTypography } from "@/constants/TVTypography"; import { useTVFocusAnimation } from "./hooks/useTVFocusAnimation"; export interface TVTabButtonProps { label: string; active: boolean; onSelect: () => void; hasTVPreferredFocus?: boolean; switchOnFocus?: boolean; disabled?: boolean; } export const TVTabButton: React.FC = ({ label, active, onSelect, hasTVPreferredFocus = false, switchOnFocus = false, disabled = false, }) => { const typography = useScaledTVTypography(); const { focused, handleFocus, handleBlur, animatedStyle } = useTVFocusAnimation({ scaleAmount: 1.05, duration: 120, onFocus: switchOnFocus ? onSelect : undefined, }); return ( {label} ); };