import { FlatList, View } from 'react-native'; import { ThemedText } from '@/components/ThemedText'; import { colors } from '@/theme/colors'; import { spacing } from '@/theme/spacing'; import type { Alert } from '@/types/mat'; import { AlertCard } from './AlertCard'; type AlertListProps = { alerts: Alert[]; }; export const AlertList = ({ alerts }: AlertListProps) => { if (alerts.length === 0) { return ( No alerts — system nominal ); } return ( item.id} renderItem={({ item }) => } contentContainerStyle={{ paddingBottom: spacing.md }} showsVerticalScrollIndicator={false} removeClippedSubviews={false} /> ); };