import React, { useState } from 'react'; import { SafeAreaView, View, Text, FlatList, StyleSheet, StatusBar, } from 'react-native'; import { SAMPLE_ASSETS } from '../../constants/data'; import { COLORS } from '../../constants/color'; import { } from '../../types/type'; import { SearchBar } from '../../components/searchbar'; import { AssetCard } from '../../components/assetCard'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import BottomTabBar from '../../navigation/bottonTabBar'; import { ScrollView } from 'react-native'; export default function AssetsScreen() { const [search, setSearch] = useState(''); const filteredAssets = SAMPLE_ASSETS.filter( (item) => item.name.toLowerCase().includes(search.toLowerCase()) || item.location.toLowerCase().includes(search.toLowerCase()) ); return ( {/* Header Section */} Assets 251 assets ยท 242 online {/* Search */} {/* Assets List */} item.id} renderItem={({ item }) => } showsVerticalScrollIndicator={false} /> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: COLORS.background, }, content: { flex: 1, paddingHorizontal: 20, paddingTop: 16, }, title: { color: COLORS.textPrimary, fontSize: 28, fontWeight: 'bold', }, subtitle: { color: COLORS.textSecondary, fontSize: 14, marginTop: 4, marginBottom: 16, }, });