'use client'; import { Heart, Brain, Baby, Pill, Bug, Leaf, AlertTriangle, Activity } from 'lucide-react'; import type { SupportedLanguage } from '@/lib/i18n'; interface TopicsViewProps { language: SupportedLanguage; onSelectTopic: (topic: string) => void; } const TOPIC_CATEGORIES = [ { title: 'Cardiovascular', icon: Heart, color: 'text-red-400', bgColor: 'bg-red-950/30', topics: ['Heart Attack Symptoms', 'High Blood Pressure', 'Stroke Signs (FAST)', 'Cholesterol', 'Chest Pain'], }, { title: 'Chronic Diseases', icon: Activity, color: 'text-blue-400', bgColor: 'bg-blue-950/30', topics: ['Type 2 Diabetes', 'Asthma Management', 'COPD', 'Kidney Disease', 'Obesity'], }, { title: 'Mental Health', icon: Brain, color: 'text-purple-400', bgColor: 'bg-purple-950/30', topics: ['Depression', 'Anxiety', 'Stress Management', 'Sleep Problems', 'Grief and Loss'], }, { title: 'Maternal & Child', icon: Baby, color: 'text-pink-400', bgColor: 'bg-pink-950/30', topics: ['Pregnancy Care', 'Child Fever', 'Breastfeeding', 'Vaccination Schedule', 'ORS for Diarrhea'], }, { title: 'Infectious Diseases', icon: Bug, color: 'text-yellow-400', bgColor: 'bg-yellow-950/30', topics: ['Malaria', 'Tuberculosis', 'HIV/AIDS', 'Dengue Fever', 'COVID-19'], }, { title: 'Medication Safety', icon: Pill, color: 'text-green-400', bgColor: 'bg-green-950/30', topics: ['Antibiotic Misuse', 'Pain Medication', 'Drug Interactions', 'When to See a Doctor', 'First Aid Basics'], }, { title: 'Nutrition', icon: Leaf, color: 'text-emerald-400', bgColor: 'bg-emerald-950/30', topics: ['Iron Deficiency', 'Vitamin D', 'Healthy Diet', 'Malnutrition Signs', 'Hydration'], }, { title: 'Emergency Signs', icon: AlertTriangle, color: 'text-red-400', bgColor: 'bg-red-950/30', topics: ['When to Call Emergency', 'Choking First Aid', 'Burns Treatment', 'Snakebite First Aid', 'Allergic Reaction'], }, ]; export default function TopicsView({ onSelectTopic }: TopicsViewProps) { return (
Browse by category or tap a topic to ask