import React from 'react'; import { View, Image, FlatList, StyleSheet, TouchableOpacity, Text } from 'react-native'; import { CapturedPhoto } from '../types'; interface PhotoThumbnailStripProps { photos: CapturedPhoto[]; onRemove: (id: string) => void; } export function PhotoThumbnailStrip({ photos, onRemove }: PhotoThumbnailStripProps) { if (photos.length === 0) return null; return ( item.id} renderItem={({ item }) => ( onRemove(item.id)} > )} /> ); } const styles = StyleSheet.create({ container: { position: 'absolute', bottom: 120, left: 0, right: 0, height: 80, }, list: { paddingHorizontal: 16, gap: 8, }, thumb: { width: 64, height: 64, borderRadius: 8, overflow: 'hidden', backgroundColor: '#333', }, image: { width: '100%', height: '100%', }, removeButton: { position: 'absolute', top: 2, right: 2, width: 20, height: 20, borderRadius: 10, backgroundColor: 'rgba(0,0,0,0.6)', justifyContent: 'center', alignItems: 'center', }, removeText: { color: '#fff', fontSize: 11, fontWeight: '700', }, });