import { ThemedText } from "@/components/themed-text"; import { ThemedView } from "@/components/themed-view"; import { MatchDetailData } from "@/types/api"; import React from "react"; import { useTranslation } from "react-i18next"; import { Image, StyleSheet, View } from "react-native"; interface CricketTeamsCardProps { data: MatchDetailData; isDark: boolean; } export function CricketTeamsCard({ data, isDark }: CricketTeamsCardProps) { const { t } = useTranslation(); const { match } = data; return ( {t("detail.teams_card.title")} {/* Home Team */} {match.eventHomeTeam} {/* Away Team */} {match.eventAwayTeam} ); } const styles = StyleSheet.create({ container: { margin: 16, borderRadius: 12, padding: 16, shadowColor: "#000", shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.1, shadowRadius: 4, elevation: 3, }, title: { fontSize: 14, fontWeight: "bold", marginBottom: 16, }, content: { gap: 12, }, teamRow: { flexDirection: "row", alignItems: "center", paddingVertical: 8, }, logo: { width: 32, height: 32, marginRight: 12, }, teamName: { fontSize: 16, fontWeight: "500", }, divider: { height: 1, backgroundColor: "#F0F0F0", marginLeft: 44, // Align with text }, });