({
label,
sizeMb,
url,
pro,
}: {
label: string;
sizeMb: number;
url: string;
pro?: string;
})
| 108 | }; |
| 109 | |
| 110 | const VariantRow = ({ |
| 111 | label, |
| 112 | sizeMb, |
| 113 | url, |
| 114 | pro, |
| 115 | }: { |
| 116 | label: string; |
| 117 | sizeMb: number; |
| 118 | url: string; |
| 119 | pro?: string; |
| 120 | }) => ( |
| 121 | <View style={styles.variantRow}> |
| 122 | <View style={styles.variantBadge}> |
| 123 | <Text style={styles.variantLabel}>{label}</Text> |
| 124 | </View> |
| 125 | <Text style={styles.variantSize}> |
| 126 | {sizeMb >= 1024 ? `${(sizeMb / 1024).toFixed(1)} GB` : `${sizeMb} MB`} |
| 127 | </Text> |
| 128 | <Text style={styles.variantUrl} numberOfLines={1}> |
| 129 | {url.replace('https://huggingface.co/', '')} |
| 130 | </Text> |
| 131 | {pro && ( |
| 132 | <View style={styles.proBadge}> |
| 133 | <Text style={styles.proLabel}>Apple</Text> |
| 134 | </View> |
| 135 | )} |
| 136 | </View> |
| 137 | ); |
| 138 | |
| 139 | export default ModelBrowserScreen; |
| 140 |
nothing calls this directly
no outgoing calls
no test coverage detected