import { View, Text } from "react-native"; import { StyleSheet } from "react-native-unistyles"; import { formatDiffCount } from "@/git/file-header-presentation"; interface DiffStatProps { additions: number; deletions: number; testID?: string; } export function DiffStat({ additions, deletions, testID }: DiffStatProps) { return ( +{formatDiffCount(additions)} -{formatDiffCount(deletions)} ); } const styles = StyleSheet.create((theme) => ({ row: { flexDirection: "row", alignItems: "center", height: 20, gap: 4, flexShrink: 0, }, additions: { fontSize: theme.fontSize.sm, fontWeight: theme.fontWeight.normal, color: theme.colors.statusSuccess, }, deletions: { fontSize: theme.fontSize.sm, fontWeight: theme.fontWeight.normal, color: theme.colors.statusDanger, }, }));