import { Ionicons } from "@expo/vector-icons"; import React from "react"; import { View } from "react-native"; import { Badge } from "@/components/Badge"; import { Text } from "@/components/common/Text"; import { useScaledTVTypography } from "@/constants/TVTypography"; export interface TVMetadataBadgesProps { year?: number | null; duration?: string | null; officialRating?: string | null; communityRating?: number | null; } export const TVMetadataBadges: React.FC = React.memo( ({ year, duration, officialRating, communityRating }) => { const typography = useScaledTVTypography(); return ( {year != null && ( {year} )} {duration && ( {duration} )} {officialRating && } {communityRating != null && ( } /> )} ); }, );