diff --git a/components/chat.tsx b/components/chat.tsx index 7f019a46..d3560a77 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -21,7 +21,6 @@ import { MapDataProvider, useMapData } from './map/map-data-context'; // Add thi import { updateDrawingContext } from '@/lib/actions/chat'; // Import the server action import dynamic from 'next/dynamic' import { HeaderSearchButton } from './header-search-button' -import { ReportButton } from './report-button' type ChatProps = { id?: string // This is the chatId @@ -140,7 +139,6 @@ export function Chat({ id }: ChatProps) { return ( {/* Add Provider */} -
{activeView ? : isUsageOpen ? : } @@ -187,7 +185,6 @@ export function Chat({ id }: ChatProps) { return ( {/* Add Provider */} -
{/* This is the new div for scrolling */}
diff --git a/components/header.tsx b/components/header.tsx index 45db5f99..7b0b605a 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -71,8 +71,6 @@ export const Header = () => { -
- diff --git a/components/report-button.tsx b/components/report-button.tsx index 086ab92e..6073b707 100644 --- a/components/report-button.tsx +++ b/components/report-button.tsx @@ -8,7 +8,6 @@ import { useAIState } from 'ai/rsc' import { useMapData } from '@/components/map/map-data-context' import { useMap } from '@/components/map/map-context' import { generateReport } from '@/lib/utils/report-generator' -import { toast } from 'sonner' interface ReportButtonProps { inline?: boolean @@ -42,15 +41,12 @@ export const ReportButton = ({ inline = false }: ReportButtonProps) => { mapSnapshot, chatTitle }) - - toast.success('Report generated successfully') } catch (error) { console.error('Failed to generate report:', error) - toast.error('Failed to generate report') } finally { setIsGenerating(false) } - } + const button = (