import React from "react"; import { View } from "react-native"; import { Text } from "./common/Text"; type ItemCardProps = { item: any; }; export const ItemCardText: React.FC = ({ item }) => { return ( {item.Type === "Episode" ? ( <> {item.SeriesName} {`S${item.SeasonName?.replace("Season ", "").padStart( 2, "0" )}:E${item.IndexNumber.toString().padStart(2, "0")}`}{" "} {item.Name} ) : ( <> {item.Name} )} ); };