import React from "react"; import { StyleSheet, Text, View } from "react-native"; export function KeyValueGrid({ rows }: { rows: Array<{ label: string; value: string }> }) { const visible = rows.filter((row) => row.value.trim().length > 0); if (!visible.length) return null; return ( {visible.map((row) => ( {row.label} {row.value} ))} ); } const styles = StyleSheet.create({ list: { gap: 12 }, row: { gap: 5, paddingBottom: 10, borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: "#E8ECEF", }, label: { fontSize: 12, lineHeight: 17, fontWeight: "700", color: "#597064", textTransform: "uppercase", letterSpacing: 0.4, }, value: { fontSize: 16, lineHeight: 25, color: "#334155" }, });