import { useState } from 'react' import { Menu, X } from 'lucide-react' import useChat from './hooks/useChat' import FeatureSidebar from './components/FeatureSidebar' import ChatWindow from './components/ChatWindow' import InputBar from './components/InputBar' function App() { const { messages, features, loading, prediction, sendMessage, resetChat } = useChat() const [showConfirm, setShowConfirm] = useState(false) const [sidebarOpen, setSidebarOpen] = useState(false) const handleReset = async () => { setShowConfirm(true) } const confirmReset = async () => { setShowConfirm(false) await resetChat() } return (
{/* Mobile Header with Sidebar Toggle */}

MediHelp

{/* Sidebar - Hidden on mobile, visible on md+ */}
{/* Mobile Sidebar Overlay */} {sidebarOpen && (
setSidebarOpen(false)} /> )} {/* Main chat area - Full width on mobile */}
{/* Chat messages */} {/* Input bar */}
{/* Reset Confirmation Modal */} {showConfirm && (

Start New Assessment?

This will clear all your current health data and start a fresh assessment.

)}
) } export default App