import { useThemeColor } from '@/hooks/useThemeColor'; import { MessageSquare, Sparkles } from 'lucide-react-native'; import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; const PROMPT_SUGGESTIONS = [ 'Explain recursion in simple terms', 'Write a short poem about coding', 'What are the best practices for React Native?', 'Help me debug a JavaScript error', ]; interface EmptyStateProps { onSelectPrompt: (prompt: string) => void; } export function EmptyState({ onSelectPrompt }: EmptyStateProps) { const colors = useThemeColor(); return ( Start a conversation Send a message to begin chatting with your local AI model. {PROMPT_SUGGESTIONS.map((prompt) => ( onSelectPrompt(prompt)} activeOpacity={0.7} accessibilityRole="button" accessibilityLabel={prompt} > {prompt} ))} ); } const styles = StyleSheet.create({ emptyState: { flex: 1, alignItems: 'center', justifyContent: 'center', paddingHorizontal: 32, paddingBottom: 80, }, emptyIconWrap: { width: 80, height: 80, borderRadius: 40, alignItems: 'center', justifyContent: 'center', marginBottom: 20, shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.05, shadowRadius: 10, elevation: 2, }, emptyTitle: { fontSize: 22, fontWeight: '700', marginBottom: 8, }, emptySubtitle: { fontSize: 15, textAlign: 'center', lineHeight: 22, marginBottom: 32, }, suggestionsWrap: { width: '100%', maxWidth: 400, gap: 12, }, suggestionChip: { flexDirection: 'row', alignItems: 'center', gap: 12, borderWidth: 1, borderRadius: 16, paddingHorizontal: 16, paddingVertical: 14, }, suggestionText: { fontSize: 15, flex: 1, fontWeight: '500', }, });