-
+
+
+ {activeView ? : }
+
+
+
+
+
+
+
+
{showEmptyScreen ? (
{
@@ -131,16 +101,36 @@ export function Chat({ id }: ChatProps) {
) : (
)}
-
-
-
+
+ );
+ }
+
+ // Desktop layout
+ return (
+
{/* Add Provider */}
+
+ {/* This is the new div for scrolling */}
+
+
+ {showEmptyScreen ? (
+ {
+ setInput(message)
+ }}
+ />
+ ) : (
+
+ )}
+
+
+ {activeView ? : }
+
+
);
}
diff --git a/components/header.tsx b/components/header.tsx
index 0a370612..9b53d65f 100644
--- a/components/header.tsx
+++ b/components/header.tsx
@@ -1,3 +1,5 @@
+'use client'
+
import React from 'react'
import Image from 'next/image'
import { ModeToggle } from './mode-toggle'
@@ -13,8 +15,13 @@ import {
} from 'lucide-react'
import { MapToggle } from './map-toggle'
import { ProfileToggle } from './profile-toggle'
+import { useAnalysisTool } from './analysis-tool-context'
+import { useMap } from './map/map-context'
export const Header = () => {
+ const { isAnalyzing, handleResolutionSearch } = useAnalysisTool()
+ const { map } = useMap()
+
return (