"use client"; import { Stethoscope, Pill, Baby } from "lucide-react"; import { HeroInput } from "../chat/HeroInput"; import { TrustBar } from "../chat/TrustBar"; import { t, type SupportedLanguage, } from "@/lib/i18n"; interface HomeViewProps { language: SupportedLanguage; country: string; emergencyNumber: string; onNavigate: (view: string) => void; onSendMessage: (content: string) => void; onStartVoice: () => void; } /** * Home landing — enterprise-clean, zero redundancy. * * Structure: * 1. Empathetic hero headline * 2. The input (the single most important element) * 3. Trust bar (one line) * 4. Three action cards (symptoms / medicine / pregnancy) * 5. Disclaimer (one line) * * Everything else (emergency, voice, topics, settings) lives in the * sidebar, bottom nav, or header — NOT repeated here. */ export function HomeView({ language, onSendMessage, onStartVoice, }: HomeViewProps) { return (
{/* Hero — short, empathetic, centered */}

{t("home_hero_title", language)}

{t("home_hero_subtitle", language)}

{/* The input — front and center, hero size */}
{/* Trust bar — one line, not repeated */}
{/* Three action cards — no redundancy with nav */}
onSendMessage(t("home_symptoms", language))} /> onSendMessage(t("home_medicine", language))} /> onSendMessage(t("home_pregnancy", language))} />
{/* Disclaimer — one line, bottom */}

{t("badge_not_doctor", language)}

); } function ActionCard({ title, Icon, iconClass, onClick, }: { title: string; Icon: any; iconClass: string; onClick: () => void; }) { return ( ); }