/** * BottomNavigation Component * * View switcher with three navigation tabs: You, Chat, Knowledge. * * Features: * - Active tab highlighting * - Hides when no messages present (empty state) * - Centered layout with max-width constraint * * Note: Settings is accessed from the sidebar menu, not bottom navigation. */ import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; import type { Theme } from '../theme'; export type ViewType = 'you' | 'chat' | 'knowledge' | 'settings'; interface BottomNavigationProps { theme: Theme; currentView: ViewType; hasMessages: boolean; onYouPress: () => void; onChatPress: () => void; onKnowledgePress: () => void; onSettingsPress?: () => void; // Optional - not shown in bottom nav } export function BottomNavigation({ theme, currentView, hasMessages, onYouPress, onChatPress, onKnowledgePress, onSettingsPress, }: BottomNavigationProps) { // Hide when chat is empty if (!hasMessages) { return null; } return ( You Chat Knowledge ); } const styles = StyleSheet.create({ viewSwitcher: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', paddingHorizontal: 16, paddingVertical: 2, maxWidth: 400, alignSelf: 'center', width: '100%', }, viewSwitcherButton: { paddingVertical: 4, paddingHorizontal: 14, borderRadius: 6, flex: 1, alignItems: 'center', justifyContent: 'center', }, viewSwitcherText: { fontSize: 13, fontFamily: 'Lexend_500Medium', }, }); export default BottomNavigation;