import { Button } from '@/components/ui/button'; import { Icon } from '@/components/ui/icon'; import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from '@/components/ui/sheet'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import { useColor } from '@/hooks/useColor'; import { Bell, Home, Mail, Search, Settings, User } from 'lucide-react-native'; import React, { useState } from 'react'; import { StyleSheet, TouchableOpacity } from 'react-native'; export function SheetNavigation() { const [open, setOpen] = useState(false); const [activeItem, setActiveItem] = useState('home'); const textColor = useColor('text'); const mutedColor = useColor('textMuted'); const borderColor = useColor('border'); const navigationItems = [ { id: 'home', label: 'Home', icon: Home }, { id: 'profile', label: 'Profile', icon: User }, { id: 'messages', label: 'Messages', icon: Mail }, { id: 'search', label: 'Search', icon: Search }, { id: 'notifications', label: 'Notifications', icon: Bell }, { id: 'settings', label: 'Settings', icon: Settings }, ]; const handleItemPress = (itemId: string) => { setActiveItem(itemId); setOpen(false); }; return ( Navigation Menu Navigate to different sections of the app. {navigationItems.map((item) => { const name = item.icon; const isActive = activeItem === item.id; return ( handleItemPress(item.id)} > {item.label} ); })} ); } const styles = StyleSheet.create({ navigationContainer: { padding: 16, gap: 8, }, navigationItem: { flexDirection: 'row', alignItems: 'center', gap: 12, padding: 12, borderRadius: 8, borderWidth: 1, borderColor: 'transparent', }, navigationText: { fontSize: 16, fontWeight: '500', }, });